[Scummvm-cvs-logs] CVS: scummvm/scumm scummvm.cpp,2.60,2.61

Max Horn fingolfin at users.sourceforge.net
Sat Mar 8 18:46:45 CET 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv1009

Modified Files:
	scummvm.cpp 
Log Message:
rest of patch #655594: Handling Y/N questions

Index: scummvm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scummvm.cpp,v
retrieving revision 2.60
retrieving revision 2.61
diff -u -d -r2.60 -r2.61
--- scummvm.cpp	8 Mar 2003 00:56:43 -0000	2.60
+++ scummvm.cpp	9 Mar 2003 02:41:35 -0000	2.61
@@ -1534,7 +1534,12 @@
 						resourceStats();
 					else
 						_keyPressed = event.kbd.ascii;	// Normal key press, pass on to the game.
-				} else
+				} else if (event.kbd.flags & OSystem::KBD_ALT) {
+					// The result must be 273 for Alt-W
+					// because that's what MI2 looks for in
+					// its "instant win" cheat.
+					_keyPressed = event.kbd.keycode + 154;
+				} else 
 					_keyPressed = event.kbd.ascii;	// Normal key press, pass on to the game.
 				break;
 





More information about the Scummvm-git-logs mailing list