aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/snail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge/snail.cpp')
-rw-r--r--engines/cge/snail.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/cge/snail.cpp b/engines/cge/snail.cpp
index d2ed77d755..697e70bf8e 100644
--- a/engines/cge/snail.cpp
+++ b/engines/cge/snail.cpp
@@ -797,12 +797,10 @@ void CGEEngine::snKill(Sprite *spr) {
void CGEEngine::snSound(Sprite *spr, int wav, int cnt) {
debugC(1, kCGEDebugEngine, "CGEEngine::snSound(spr, %d, %d)", wav, cnt);
- if (_sndDrvInfo._dDev) {
- if (wav == -1)
- _sound.stop();
- else
- _sound.play(_fx[wav], (spr) ? ((spr->_x + spr->_w / 2) / (kScrWidth / 16)) : 8, cnt);
- }
+ if (wav == -1)
+ _sound.stop();
+ else
+ _sound.play(_fx[wav], (spr) ? ((spr->_x + spr->_w / 2) / (kScrWidth / 16)) : 8, cnt);
}