[Scummvm-cvs-logs] CVS: scummvm/saga game.cpp,1.28,1.29 resnames.h,1.10,1.11 script.cpp,1.31,1.32

Eugene Sandulenko sev at users.sourceforge.net
Tue Dec 7 19:16:05 CET 2004


Update of /cvsroot/scummvm/scummvm/saga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26761

Modified Files:
	game.cpp resnames.h script.cpp 
Log Message:
Use some disassembly-based values.


Index: game.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/game.cpp,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- game.cpp	3 Dec 2004 19:15:44 -0000	1.28
+++ game.cpp	8 Dec 2004 03:15:36 -0000	1.29
@@ -263,7 +263,7 @@
 		GAME_IHNM_DEMO,
 		"I Have No Mouth and I Must Scream (DOS Demo)",
 		640, 480,
-		304,
+		7,
 		0,
 		&IHNM_Resources,
 		ARRAYSIZE(IHNMDEMO_GameFiles),
@@ -281,7 +281,7 @@
 		GAME_IHNM_CD,
 		"I Have No Mouth and I Must Scream (DOS)",
 		640, 480,
-		304,
+		7,
 		152,
 		&IHNM_Resources,
 		ARRAYSIZE(IHNMCD_GameFiles),

Index: resnames.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/resnames.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- resnames.h	7 Nov 2004 14:15:41 -0000	1.10
+++ resnames.h	8 Dec 2004 03:15:36 -0000	1.11
@@ -32,8 +32,9 @@
 #define ITE_SCENE_LUT  1806
 #define ITE_SCRIPT_LUT 216
 
-#define IHNM_SCENE_LUT  1272
-#define IHNM_SCRIPT_LUT 0
+	// Hmmm.... as far as I see origginal uses now commented values, but they're wrong
+#define IHNM_SCENE_LUT  1272  // 286
+#define IHNM_SCRIPT_LUT 0     // 18
 
 // SCENES
 #define ITE_DEFAULT_SCENE 32

Index: script.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/script.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- script.cpp	3 Dec 2004 19:15:44 -0000	1.31
+++ script.cpp	8 Dec 2004 03:15:36 -0000	1.32
@@ -83,7 +83,7 @@
 	} else if (rsc_len % S_LUT_ENTRYLEN_ITEDISK == 0) {
 		_scriptLUTEntryLen = S_LUT_ENTRYLEN_ITEDISK;
 	} else {
-		error("Error: Invalid script lookup table length");
+		error("Error: Invalid script lookup table length (%d)", rsc_len);
 	}
 
 	// Calculate number of entries





More information about the Scummvm-git-logs mailing list