diff options
author | Eugene Sandulenko | 2019-07-13 17:43:24 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:19 +0200 |
commit | 8c19637727be1f8d38f59f7dac42f6f7fcac8fec (patch) | |
tree | 2d6e127183829cb72e5d713762bef7e48b049726 /engines/hdb | |
parent | ac50b10549479c980bf9f0bfceb9dd5b0a2fb5c3 (diff) | |
download | scummvm-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.cpp | 2 |
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); } |