[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.316,1.317

Jonathan Gray khalek at users.sourceforge.net
Tue Oct 21 03:17:02 CEST 2003


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

Modified Files:
	simon.cpp 
Log Message:
fix shadow'd variable, the single letter variable names in the simon code are rather scary....

Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.316
retrieving revision 1.317
diff -u -d -r1.316 -r1.317
--- simon.cpp	21 Oct 2003 06:35:19 -0000	1.316
+++ simon.cpp	21 Oct 2003 09:33:49 -0000	1.317
@@ -2806,10 +2806,10 @@
 				// do_backspace
 				if (name_len != 0) {
 					int x;
-					byte b;
+					byte m;
 
 					name_len--;
-					b = name[name_len];
+					m = name[name_len];
 
 					if (_language == 20) //Hebrew
 						x = 8;
@@ -2818,7 +2818,7 @@
 
 					name[name_len] = 0;
 
-					o_unk_132_helper_2(_fcs_ptr_array_3[5], x, b);
+					o_unk_132_helper_2(_fcs_ptr_array_3[5], x, m);
 				}
 			} else if (i >= 32 && name_len != 17) {
 				name[name_len++] = i;





More information about the Scummvm-git-logs mailing list