aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2014-07-22 17:59:16 +0200
committeruruk2014-07-22 17:59:16 +0200
commite261886d92ea3c173d0e3a38cce73ac2b6d54c3f (patch)
tree5d829cdaae97f080de1b8dd30b5032f9df672e7e /engines
parent77b5c7e4adea3485a8c3cfb215eca4471deae443 (diff)
downloadscummvm-rg350-e261886d92ea3c173d0e3a38cce73ac2b6d54c3f.tar.gz
scummvm-rg350-e261886d92ea3c173d0e3a38cce73ac2b6d54c3f.tar.bz2
scummvm-rg350-e261886d92ea3c173d0e3a38cce73ac2b6d54c3f.zip
CGE2: Fix snSound().
Diffstat (limited to 'engines')
-rw-r--r--engines/cge2/snail.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp
index cee4531fba..c8b1722134 100644
--- a/engines/cge2/snail.cpp
+++ b/engines/cge2/snail.cpp
@@ -286,6 +286,7 @@ void CommandHandler::runCommand() {
break;
case kCmdSound:
_vm->snSound(spr, tailCmd._val);
+ _sound->setRepeat(1);
break;
case kCmdMap:
_vm->_heroTab[tailCmd._ref & 1]->_ptr->_ignoreMap = tailCmd._val == 0;
@@ -683,8 +684,6 @@ void CGE2Engine::snSound(Sprite *spr, int wav) {
_sound->play(_fx->load(_soundStat._ref[1], _soundStat._ref[0]),
(spr) ? (spr->_pos2D.x / (kScrWidth / 16)) : 8);
}
-
- _sound->setRepeat(1);
}
void CGE2Engine::snRoom(Sprite *spr, bool on) {