diff options
author | johndoe123 | 2014-01-12 00:33:42 +0100 |
---|---|---|
committer | johndoe123 | 2014-01-12 00:33:42 +0100 |
commit | 592526dc5d66b4249f8acd1d4b3ad3d7fa1854bf (patch) | |
tree | abda907a6e6a4e496d6d652ec0747031fd152fab /engines | |
parent | 4a0bfb751c05d3f30eee4c6c1c4bcdb78f5058db (diff) | |
download | scummvm-rg350-592526dc5d66b4249f8acd1d4b3ad3d7fa1854bf.tar.gz scummvm-rg350-592526dc5d66b4249f8acd1d4b3ad3d7fa1854bf.tar.bz2 scummvm-rg350-592526dc5d66b4249f8acd1d4b3ad3d7fa1854bf.zip |
NEVERHOOD: Fix "Klaymen! Up here!" in module 1100, scene 2
Diffstat (limited to 'engines')
-rw-r--r-- | engines/neverhood/sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/neverhood/sound.cpp b/engines/neverhood/sound.cpp index 5821fd6df3..04043692f8 100644 --- a/engines/neverhood/sound.cpp +++ b/engines/neverhood/sound.cpp @@ -214,7 +214,7 @@ void SoundItem::setSoundParams(bool playOnceAfterRandomCountdown, int16 minCount _minCountdown = minCountdown; if (maxCountdown > 0) _maxCountdown = maxCountdown; - if (firstMinCountdown >= firstMaxCountdown) + if (firstMinCountdown > firstMaxCountdown) _currCountdown = firstMinCountdown; else if (firstMinCountdown > 0 && firstMaxCountdown > 0 && firstMinCountdown < firstMaxCountdown) _currCountdown = _vm->_rnd->getRandomNumberRng(firstMinCountdown, firstMaxCountdown); |