diff options
author | athrxx | 2011-08-20 13:24:36 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-12-26 16:18:14 +0100 |
commit | c35de374dfe545ffc5044a00a247c5814e3b250e (patch) | |
tree | cad935e5db618270d5cf70f2e91d41ec32e514b7 /engines/kyra/timer_eob.cpp | |
parent | f7032c126dd097e8083e0fc740c7c856e0f2dd58 (diff) | |
download | scummvm-rg350-c35de374dfe545ffc5044a00a247c5814e3b250e.tar.gz scummvm-rg350-c35de374dfe545ffc5044a00a247c5814e3b250e.tar.bz2 scummvm-rg350-c35de374dfe545ffc5044a00a247c5814e3b250e.zip |
KYRA: (EOB) - lots of bug fixes, mostly for EOB II
Diffstat (limited to 'engines/kyra/timer_eob.cpp')
-rw-r--r-- | engines/kyra/timer_eob.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/kyra/timer_eob.cpp b/engines/kyra/timer_eob.cpp index caeae8cb29..f36688df39 100644 --- a/engines/kyra/timer_eob.cpp +++ b/engines/kyra/timer_eob.cpp @@ -221,6 +221,13 @@ void EobCoreEngine::advanceTimers(uint32 millis) { } } } + + for (int i = 0; i < 5; i++) { + if (_wallsOfForce[i].duration > ct) { + uint32 chrt = _wallsOfForce[i].duration - ct; + _wallsOfForce[i].duration = chrt > millis ? ct + chrt - millis : ct; + } + } } void EobCoreEngine::timerProcessCharacterExchange(int timerNum) { |