diff options
author | Robert Göffringmann | 2003-12-16 05:02:34 +0000 |
---|---|---|
committer | Robert Göffringmann | 2003-12-16 05:02:34 +0000 |
commit | e2843f3e07b9774c7cd85a2d69bdd1746bd86648 (patch) | |
tree | 6c62c99b0db3839cb4c94076eb36954d9cec3060 /sword1 | |
parent | 0b0f5d0b7aa432f8d68d2a13915a8cbdf9de412f (diff) | |
download | scummvm-rg350-e2843f3e07b9774c7cd85a2d69bdd1746bd86648.tar.gz scummvm-rg350-e2843f3e07b9774c7cd85a2d69bdd1746bd86648.tar.bz2 scummvm-rg350-e2843f3e07b9774c7cd85a2d69bdd1746bd86648.zip |
revert one of kirben's changes
svn-id: r11669
Diffstat (limited to 'sword1')
-rw-r--r-- | sword1/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sword1/sound.cpp b/sword1/sound.cpp index 2ba8143aa9..4b64fabbf7 100644 --- a/sword1/sound.cpp +++ b/sword1/sound.cpp @@ -60,8 +60,8 @@ int SwordSound::addToQueue(int32 fxNo) { void SwordSound::engine(void) { // first of all, add any random sfx to the queue... for (uint16 cnt = 0; cnt < TOTAL_FX_PER_ROOM; cnt++) { - uint16 fxNo; - if (fxNo == _roomsFixedFx[SwordLogic::_scriptVars[SCREEN]][cnt]) { + uint16 fxNo = _roomsFixedFx[SwordLogic::_scriptVars[SCREEN]][cnt]; + if (fxNo) { if (_fxList[fxNo].type == FX_RANDOM) { if (_rnd.getRandomNumber(_fxList[fxNo].delay) == 0) addToQueue(fxNo); |