[Scummvm-cvs-logs] SF.net SVN: scummvm: [21058] scummvm/trunk/engines/scumm/script_v2.cpp

kirben at users.sourceforge.net kirben at users.sourceforge.net
Fri Mar 3 20:47:02 CET 2006


Revision: 21058
Author:   kirben
Date:     2006-03-03 20:46:15 -0800 (Fri, 03 Mar 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm?rev=21058&view=rev

Log Message:
-----------
Update hack for bug #915575 - MANIAC: Disappearing New Kid verb

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/script_v2.cpp
Modified: scummvm/trunk/engines/scumm/script_v2.cpp
===================================================================
--- scummvm/trunk/engines/scumm/script_v2.cpp	2006-03-04 04:29:38 UTC (rev 21057)
+++ scummvm/trunk/engines/scumm/script_v2.cpp	2006-03-04 04:46:15 UTC (rev 21058)
@@ -453,14 +453,6 @@
 	}
 
 	_scummVars[var] = value;
-
-	// HACK: Ender's hack around a bug in Maniac. If you take the last dime from
-	//       Weird Ed's piggybank, this disables the New Kid option and runs the Jail
-	//       cutscene. Script 116 sets var[175] to 1, which disables New Kid in
-	//       script 164. Unfortunatly, when New Kid is reenabled (var[175] = 0) in
-	//       script 89, script 164 isn't reran to redraw it. Why? Dunno. Hack? Yes.
-	if ((var == 175) && (_game.id == GID_MANIAC) && (vm.slot[_currentScript].number == 89))
-		runScript(164, 0, 0, 0);
 }
 
 void ScummEngine_v2::getResultPosIndirect() {
@@ -1167,14 +1159,22 @@
 
 	script = getVarOrDirectByte(PARAM_1);
 
-	if ((_game.id == GID_ZAK) && (_roomResource == 7) && (vm.slot[_currentScript].number == 10001)) {
+	if (_game.id == GID_ZAK && _roomResource == 7 && vm.slot[_currentScript].number == 10001) {
 	// FIXME: Nasty hack for bug #771499
-	// Don't let the exit script for room 7 stop the buy script (24),
+	// Don't let the exit script for room 7 stop the buy script (24), when
 	// switching to the number selection keypad (script 15)
 		if ((script == 24) && isScriptRunning(15))
 			return;
 	}
 
+	if (_game.id == GID_MANIAC && _roomResource == 26 && vm.slot[_currentScript].number == 10001) {
+	// FIXME: Nasty hack for bug #915575
+	// Don't let the exit script for room 26 stop the script (116), when
+	// switching to the dungeon (script 89)
+		if ((script == 116) && isScriptRunning(89))
+			return;
+	}
+
 	if (script == 0)
 		script = vm.slot[_currentScript].number;
 







More information about the Scummvm-git-logs mailing list