[Scummvm-cvs-logs] CVS: scummvm/simon vga.cpp,1.108,1.109

Travis Howell kirben at users.sourceforge.net
Wed Dec 31 21:14:01 CET 2003


Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1:/tmp/cvs-serv32505/simon

Modified Files:
	vga.cpp 
Log Message:

Add hack to stop invalid opcode in French version of Simon the Sorcerer 1.
This was a bug in original game and causes several bad effects.


Index: vga.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/vga.cpp,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -d -r1.108 -r1.109
--- vga.cpp	24 Dec 2003 00:25:05 -0000	1.108
+++ vga.cpp	1 Jan 2004 05:13:17 -0000	1.109
@@ -128,6 +128,14 @@
 			opcode = *_vc_ptr++;
 		}
 
+		// HACK Stop ScummVM error when Simon talks to Golum about Stew
+		// in French version of Simon the Sorcerer 1. This was a bug in
+		// the original game, which just ignored the invalid opcodes.
+		// Unfortunately causes no subtitles and a stack of wait timeouts,
+		// which also occured in original game.
+		if (!(_game & GF_SIMON2) && (_language == 2) && opcode == 207)
+			return;
+
 		if (opcode >= NUM_VIDEO_OP_CODES)
 			error("Invalid VGA opcode '%d' encountered", opcode);
 





More information about the Scummvm-git-logs mailing list