[Scummvm-git-logs] scummvm master -> ee5a70598e7143643bc8d686787825b2f8845be4

sluicebox noreply at scummvm.org
Thu Mar 7 23:15:55 UTC 2024


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:
ee5a70598e AGI: Fix LSL1 shoplifting bug


Commit: ee5a70598e7143643bc8d686787825b2f8845be4
    https://github.com/scummvm/scummvm/commit/ee5a70598e7143643bc8d686787825b2f8845be4
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2024-03-07T16:12:55-07:00

Commit Message:
AGI: Fix LSL1 shoplifting bug

Fixes bug #13137

Changed paths:
    engines/agi/cycle.cpp


diff --git a/engines/agi/cycle.cpp b/engines/agi/cycle.cpp
index 7ee995503e6..7f4f4dd1f8c 100644
--- a/engines/agi/cycle.cpp
+++ b/engines/agi/cycle.cpp
@@ -115,6 +115,13 @@ void AgiEngine::newRoom(int16 newRoomNr) {
 
 		_game._vm->_text->statusDraw();
 		_game._vm->_text->promptRedraw();
+
+		// WORKAROUND: LSL1 has a script bug where exiting room 17 via the staircase
+		// leaves a flag set that ignores priority triggers in all rooms. This allows
+		// the player to leave the store (room 21) without paying. Bug #13137
+		if (getGameID() == GID_LSL1) {
+			setFlag(36, 0); // clear "ignore special" flag on every room change
+		}
 	}
 }
 




More information about the Scummvm-git-logs mailing list