Skip to content

Commit

Permalink
BLADERUNNER: Restore acquireCluesByRelations checks
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniou79 committed Feb 23, 2019
1 parent 0b9fe06 commit 68f9aca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions engines/bladerunner/actor.cpp
Expand Up @@ -108,6 +108,7 @@ void Actor::setup(int actorId) {
_timersLeft[i] = 0;
_timersLast[i] = _vm->_time->current();
}
_timersLeft[4] = _timer4RemainDefault; // This was in original code. We need to init this timer in oder to kick off periodic updates for acquireCluesByRelations

_honesty = 50;
_intelligence = 50;
Expand Down Expand Up @@ -1450,6 +1451,12 @@ void Actor::load(SaveFileReadStream &f) {
for (int i = 0; i < 7; ++i) {
_timersLeft[i] = f.readInt();
}
// Bugfix: Special initialization case for timer 4 when it's value is restored as 0
// This should be harmless, but will remedy any broken save-games where the timer 4 was saved as 0.
// //
if (_timersLeft[4] == 0) {
_timersLeft[4] = _timer4RemainDefault;
}

uint32 now = _vm->_time->getPauseStart();
for (int i = 0; i < 7; ++i) {
Expand Down

0 comments on commit 68f9aca

Please sign in to comment.