[Scummvm-cvs-logs] CVS: scummvm/scumm verbs.cpp,1.126,1.127

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Tue Apr 12 23:32:15 CEST 2005


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

Modified Files:
	verbs.cpp 
Log Message:
Fixed Indy 3 fighting in the "Passport to Adventure" demo. Apparently it
expects the same keyboard mapping as FOA does.


Index: verbs.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/verbs.cpp,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -d -r1.126 -r1.127
--- verbs.cpp	6 Apr 2005 17:31:35 -0000	1.126
+++ verbs.cpp	13 Apr 2005 06:30:41 -0000	1.127
@@ -369,10 +369,12 @@
 			}
 		}
 		
-		if (_gameId == GID_INDY4 && _mouseButStat >= '0' && _mouseButStat <= '9') {
+		if ((_gameId == GID_INDY4 || _gameId == GID_PASS) && _mouseButStat >= '0' && _mouseButStat <= '9') {
 			// To support keyboard fighting in FOA, we need to remap the number keys.
 			// FOA apparently expects PC scancode values (see script 46 if you want
-			// to know where I got these numbers from).
+			// to know where I got these numbers from). Oddly enough, the The Indy 3
+			// part of the "Passport to Adventure" demo expects the same keyboard
+			// mapping, even though the full game doesn't.
 			static const int numpad[10] = {
 					'0',
 					335, 336, 337,





More information about the Scummvm-git-logs mailing list