diff options
author | Thanasis Antoniou | 2019-06-26 15:21:55 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-06-26 15:21:55 +0300 |
commit | e60aac53b1d2d19a1f3a33a2581a514e8b571981 (patch) | |
tree | c8d8ae63873f404d701aa70567909cc8c9ecff26 /engines/bladerunner/script | |
parent | 2e1a84694b5293b36de77468acf075bb97a12578 (diff) | |
download | scummvm-rg350-e60aac53b1d2d19a1f3a33a2581a514e8b571981.tar.gz scummvm-rg350-e60aac53b1d2d19a1f3a33a2581a514e8b571981.tar.bz2 scummvm-rg350-e60aac53b1d2d19a1f3a33a2581a514e8b571981.zip |
BLADERUNNER: Fix waiting time for targets in Maze
Applies only for normal and hard mode. Easy mode keeps the original more relaxed behavior.
Diffstat (limited to 'engines/bladerunner/script')
-rw-r--r-- | engines/bladerunner/script/police_maze.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/bladerunner/script/police_maze.cpp b/engines/bladerunner/script/police_maze.cpp index f5b9a1daa2..f3f20b2354 100644 --- a/engines/bladerunner/script/police_maze.cpp +++ b/engines/bladerunner/script/police_maze.cpp @@ -32,6 +32,7 @@ #include "bladerunner/time.h" #include "bladerunner/subtitles.h" #include "bladerunner/debugger.h" +#include "bladerunner/settings.h" // ---------------------- // Maze point system info // ---------------------- @@ -259,6 +260,13 @@ bool PoliceMazeTargetTrack::tick() { _timeLeftUpdate -= timeDiff; if (_timeLeftUpdate > 0) { +#if !BLADERUNNER_ORIGINAL_BUGS + // this fix makes the targets appear according to their wait time + // but it might be too fast for easy or normal mode, so only do this for normal and hard modes + if (_vm->_settings->getDifficulty() > kGameDifficultyEasy) { + _time = oldTime; + } +#endif // !BLADERUNNER_ORIGINAL_BUGS return false; } @@ -270,7 +278,6 @@ bool PoliceMazeTargetTrack::tick() { if (_isWaiting) { _timeLeftWait -= timeDiff; - if (_timeLeftWait > 0) { return true; } @@ -589,6 +596,9 @@ bool PoliceMazeTargetTrack::tick() { debug("ItemId: %3i, Wait random, Min: %i, Max: %i", _itemId, randomMin, randomMax); #endif _timeLeftWait = Random_Query(randomMin, randomMax); +#if BLADERUNNER_DEBUG_CONSOLE + debug("ItemId: %3i, Wait for = %i", _itemId, _timeLeftWait); +#endif _isWaiting = true; cont = false; |