aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-13 17:43:24 +0200
committerEugene Sandulenko2019-09-03 17:17:19 +0200
commit8c19637727be1f8d38f59f7dac42f6f7fcac8fec (patch)
tree2d6e127183829cb72e5d713762bef7e48b049726 /engines/hdb
parentac50b10549479c980bf9f0bfceb9dd5b0a2fb5c3 (diff)
downloadscummvm-rg350-8c19637727be1f8d38f59f7dac42f6f7fcac8fec.tar.gz
scummvm-rg350-8c19637727be1f8d38f59f7dac42f6f7fcac8fec.tar.bz2
scummvm-rg350-8c19637727be1f8d38f59f7dac42f6f7fcac8fec.zip
HDB: Fix getRandomNumber() usage
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/ai-player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/ai-player.cpp b/engines/hdb/ai-player.cpp
index 56a08eddb1..a050892205 100644
--- a/engines/hdb/ai-player.cpp
+++ b/engines/hdb/ai-player.cpp
@@ -599,7 +599,7 @@ void aiChickenAction(AIEntity *e) {
if (g_hdb->_map->checkEntOnScreen(e) && !delay) {
g_hdb->_sound->playSound(SND_CHICKEN_AMBIENT);
- delay = g_hdb->_rnd->getRandomNumber(128) + 160;
+ delay = g_hdb->_rnd->getRandomNumber(127) + 160;
aiChickenUse(e);
}