aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood
diff options
context:
space:
mode:
authorjohndoe1232014-01-12 00:33:42 +0100
committerjohndoe1232014-01-12 00:33:42 +0100
commit592526dc5d66b4249f8acd1d4b3ad3d7fa1854bf (patch)
treeabda907a6e6a4e496d6d652ec0747031fd152fab /engines/neverhood
parent4a0bfb751c05d3f30eee4c6c1c4bcdb78f5058db (diff)
downloadscummvm-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/neverhood')
-rw-r--r--engines/neverhood/sound.cpp2
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);