[Scummvm-cvs-logs] CVS: scummvm/scumm verbs.cpp,1.135,1.136

Max Horn fingolfin at users.sourceforge.net
Mon May 23 17:34:22 CEST 2005


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

Modified Files:
	verbs.cpp 
Log Message:
Fix for bug #705221 (FT: German ß is too high); based on the CVS logs for this (the order was changed back and forth a couple times) this change could cause regressions; if so, we need to address them properly, not by fiddling with this code around

Index: verbs.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/verbs.cpp,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -d -r1.135 -r1.136
--- verbs.cpp	30 Apr 2005 15:04:15 -0000	1.135
+++ verbs.cpp	24 May 2005 00:29:29 -0000	1.136
@@ -336,7 +336,12 @@
 	if (_cursor.state > 0)
 		verb = findVerbAtPos(_mouse.x, _mouse.y);
 
-	for (i = _numVerbs-1; i >= 0; i--) {
+	// Iterate over all verbs.
+	// Note: This is the correct order (at least for MI EGA, MI2, Full Throttle).
+	// Do not change it! If you discover, based on disasm, that some game uses
+	// another (e.g. the reverse) order here, you have to use an if/else construct
+	// to add it as a special case!
+	for (i = 0; i < _numVerbs; i++) {
 		if (i == verb && _verbs[verb].hicolor)
 			drawVerb(i, 1);
 		else





More information about the Scummvm-git-logs mailing list