[Scummvm-git-logs] scummvm master -> 8f9e306decc8de70d428f6bfe63275ae44897f54

dwatteau noreply at scummvm.org
Thu Aug 29 09:13:07 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:
8f9e306dec JANITORIAL: SCUMM: Fix indentation for new v0/v1 Zak enhancement


Commit: 8f9e306decc8de70d428f6bfe63275ae44897f54
    https://github.com/scummvm/scummvm/commit/8f9e306decc8de70d428f6bfe63275ae44897f54
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2024-08-29T11:12:43+02:00

Commit Message:
JANITORIAL: SCUMM: Fix indentation for new v0/v1 Zak enhancement

Changed paths:
    engines/scumm/script.cpp


diff --git a/engines/scumm/script.cpp b/engines/scumm/script.cpp
index 499e3fd4f5a..8297a0992a4 100644
--- a/engines/scumm/script.cpp
+++ b/engines/scumm/script.cpp
@@ -49,16 +49,16 @@ void ScummEngine::runScript(int script, bool freezeResistant, bool recursive, in
 	if (enhancementEnabled(kEnhGameBreakingBugFixes) && _game.id == GID_MANIAC &&
 		_game.version == 0 && (_game.features & GF_DEMO) && script == 43)
 		return;
-    
-    // WORKAROUND for bug in v0/v1 Zak McKracken:
-    // Picking up the yellow shard in the Mexican Temple while playing as Annie was not possible.
-    // This was fixed in v2.
-    if (enhancementEnabled(kEnhGameBreakingBugFixes) && _game.id == GID_ZAK &&
-        _game.version < 2 && script == 119 && VAR(VAR_EGO) == 2) {
-        addObjectToInventory(56, 14);
-        putOwner(56, VAR(VAR_EGO));
-    }
-    
+
+	// WORKAROUND for bug in v0/v1 Zak McKracken:
+	// Picking up the yellow shard in the Mexican Temple while playing as Annie was not possible.
+	// This was fixed in v2.
+	if (enhancementEnabled(kEnhGameBreakingBugFixes) && _game.id == GID_ZAK &&
+		_game.version < 2 && script == 119 && VAR(VAR_EGO) == 2) {
+		addObjectToInventory(56, 14);
+		putOwner(56, VAR(VAR_EGO));
+	}
+
  	if (!script)
 		return;
 




More information about the Scummvm-git-logs mailing list