[Scummvm-cvs-logs] SF.net SVN: scummvm: [32365] scummvm/trunk/engines/drascula/drascula.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Thu May 29 18:53:29 CEST 2008


Revision: 32365
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32365&view=rev
Author:   thebluegr
Date:     2008-05-29 09:53:28 -0700 (Thu, 29 May 2008)

Log Message:
-----------
Numbers are mapped in a different order in the game's fonts

Modified Paths:
--------------
    scummvm/trunk/engines/drascula/drascula.cpp

Modified: scummvm/trunk/engines/drascula/drascula.cpp
===================================================================
--- scummvm/trunk/engines/drascula/drascula.cpp	2008-05-29 16:41:49 UTC (rev 32364)
+++ scummvm/trunk/engines/drascula/drascula.cpp	2008-05-29 16:53:28 UTC (rev 32365)
@@ -1697,8 +1697,12 @@
 				x_de_letra = X_ASTERISCO;
 			else if (c == '+')
 				x_de_letra = X_PLUS;
-			else if (c >= '1' && c <= '0')
+			else if (c >= '1' && c <= '9')
 				x_de_letra = X_N1 + (c - '1') * 9;
+			// "0" is mapped after "9" in the game's font
+			// (it's mapped before "1" normally)
+			else if (c == '0')
+				x_de_letra = X_N0;
 			else y_de_letra=Y_ACENTOS;
 
 			if (c == '\240') x_de_letra=X_A;
@@ -4033,8 +4037,12 @@
 				x_de_letra = X_ASTERISCO_OPC;
 			else if (c == '+')
 				x_de_letra = X_PLUS_OPC;
-			else if (c >= '1' && c <= '0')
+			else if (c >= '1' && c <= '9')
 				x_de_letra = X_N1_OPC + (c - '1') * 7;
+			// "0" is mapped after "9" in the game's font
+			// (it's mapped before "1" normally)
+			else if (c == '0')
+				x_de_letra = X_N0_OPC;
 		}
 
 		pos_texto[0] = x_de_letra;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list