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

kirben at users.sourceforge.net kirben at users.sourceforge.net
Mon Dec 11 07:20:20 CET 2006


Revision: 24836
          http://scummvm.svn.sourceforge.net/scummvm/?rev=24836&view=rev
Author:   kirben
Date:     2006-12-10 22:20:17 -0800 (Sun, 10 Dec 2006)

Log Message:
-----------
Disable saving game in original load/save screen of maniac/zak, since it doesn't function correctly

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/script_v5.cpp

Modified: scummvm/trunk/engines/scumm/script_v5.cpp
===================================================================
--- scummvm/trunk/engines/scumm/script_v5.cpp	2006-12-11 06:12:12 UTC (rev 24835)
+++ scummvm/trunk/engines/scumm/script_v5.cpp	2006-12-11 06:20:17 UTC (rev 24836)
@@ -910,8 +910,8 @@
 			debug(0, "stub loadVars: vars %d -> %d", a, b);
 			break;
 		case 0x02: // read a range of string variables
-			a = getVarOrDirectByte(0x80);
-			b = getVarOrDirectByte(0x40);
+			a = getVarOrDirectByte(PARAM_1);
+			b = getVarOrDirectByte(PARAM_2);
 			debug(0, "stub loadVars: strings %d -> %d", a, b);
 			break;
 		case 0x03: // open file
@@ -1147,10 +1147,10 @@
 			result = 5; // failed to load
 		break;
 	case 0x80: // save
-		if (saveState(slot, _saveTemporaryState))
-			result = 0;
-		else
-			result = 2;
+		//if (saveState(slot, _saveTemporaryState))
+		//	result = 0; // sucess
+		//else
+			result = 2; // failed to save
 		break;
 	case 0xC0: // test if save exists
 		bool avail_saves[100];
@@ -2068,8 +2068,8 @@
 void ScummEngine_v5::o5_setOwnerOf() {
 	int obj, owner;
 
-	obj = getVarOrDirectWord(0x80);
-	owner = getVarOrDirectByte(0x40);
+	obj = getVarOrDirectWord(PARAM_1);
+	owner = getVarOrDirectByte(PARAM_2);
 
 	setOwnerOf(obj, owner);
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list