[Scummvm-git-logs] scummvm master -> 68f9acad0de7758b1c00524e3ae63572f13463ba

antoniou79 antoniou at cti.gr
Sat Feb 23 03:19:54 CET 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
68f9acad0d BLADERUNNER: Restore acquireCluesByRelations checks


Commit: 68f9acad0de7758b1c00524e3ae63572f13463ba
    https://github.com/scummvm/scummvm/commit/68f9acad0de7758b1c00524e3ae63572f13463ba
Author: Thanasis Antoniou (a.antoniou79 at gmail.com)
Date: 2019-02-23T04:18:39+02:00

Commit Message:
BLADERUNNER: Restore acquireCluesByRelations checks

Changed paths:
    engines/bladerunner/actor.cpp


diff --git a/engines/bladerunner/actor.cpp b/engines/bladerunner/actor.cpp
index 80bfe24..6403eab 100644
--- a/engines/bladerunner/actor.cpp
+++ b/engines/bladerunner/actor.cpp
@@ -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;
@@ -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) {





More information about the Scummvm-git-logs mailing list