[Scummvm-git-logs] scummvm master -> 210d50c5cd82f08a1ab5e933c64c22685069fe1d

antoniou79 a.antoniou79 at gmail.com
Mon May 11 12:33:28 UTC 2020


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:
210d50c5cd BLADERUNNER: Add explanatory comment on the check of _gameJustLaunched flag


Commit: 210d50c5cd82f08a1ab5e933c64c22685069fe1d
    https://github.com/scummvm/scummvm/commit/210d50c5cd82f08a1ab5e933c64c22685069fe1d
Author: Thanasis Antoniou (a.antoniou79 at gmail.com)
Date: 2020-05-11T15:32:41+03:00

Commit Message:
BLADERUNNER: Add explanatory comment on the check of _gameJustLaunched flag

Changed paths:
    engines/bladerunner/bladerunner.cpp


diff --git a/engines/bladerunner/bladerunner.cpp b/engines/bladerunner/bladerunner.cpp
index 95ab959ce6..e088413f49 100644
--- a/engines/bladerunner/bladerunner.cpp
+++ b/engines/bladerunner/bladerunner.cpp
@@ -1239,6 +1239,13 @@ void BladeRunnerEngine::handleEvents() {
 		return;
 	}
 
+	// This flag check is to skip the first call of handleEvents() in gameTick().
+	// This prevents a "hack" whereby the player could press Esc quickly and enter the KIA screen,
+	// even in the case when no save games for the game exist. In such case the game is supposed
+	// to immediately play the intro video and subsequently start a new game of medium difficulty. 
+	// It does not expect the player to enter KIA beforehand, which causes side-effects and unforeseen behavior. 
+	// Note: eventually we will support the option to launch into KIA in any case, 
+	// but not via the "hack" way that is fixed here.
 	if (_gameJustLaunched) {
 		_gameJustLaunched = false;
 		return;




More information about the Scummvm-git-logs mailing list