[Scummvm-git-logs] scummvm master -> 80dd45ee62e2e96c9d099844cc53afefa83e3574

bluegr noreply at scummvm.org
Sat May 21 14:14:32 UTC 2022


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:
80dd45ee62 SCUMM: Keep the security door closed by default in Maniac Mansion NES


Commit: 80dd45ee62e2e96c9d099844cc53afefa83e3574
    https://github.com/scummvm/scummvm/commit/80dd45ee62e2e96c9d099844cc53afefa83e3574
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2022-05-21T17:14:29+03:00

Commit Message:
SCUMM: Keep the security door closed by default in Maniac Mansion NES

There was no copy protection on NES, since it was on a cartridge.
One just needs to open the security door like a regular door, with its
dramatic sound effect.

This also lets one close the door again, like in the original game.

Changed paths:
    engines/scumm/object.cpp


diff --git a/engines/scumm/object.cpp b/engines/scumm/object.cpp
index 4adae01bcd3..400efbf25a0 100644
--- a/engines/scumm/object.cpp
+++ b/engines/scumm/object.cpp
@@ -307,7 +307,7 @@ int ScummEngine::getState(int obj) {
 		// it. Fortunately this does not prevent frustrated players from
 		// blowing up the mansion, should they feel the urge to.
 
-		if (_game.id == GID_MANIAC && _game.version != 0 && (obj == 182 || obj == 193))
+		if (_game.id == GID_MANIAC && _game.version != 0 && _game.platform != Common::kPlatformNES && (obj == 182 || obj == 193))
 			_objectStateTable[obj] |= kObjectState_08;
 	}
 




More information about the Scummvm-git-logs mailing list