[Scummvm-cvs-logs] SF.net SVN: scummvm: [27230] scummvm/branches/branch-0-10-0

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Sat Jun 9 09:50:26 CEST 2007


Revision: 27230
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27230&view=rev
Author:   Kirben
Date:     2007-06-09 00:50:26 -0700 (Sat, 09 Jun 2007)

Log Message:
-----------
Fix gltich when listing saved games in Hebrew versions.

Modified Paths:
--------------
    scummvm/branches/branch-0-10-0/Makefile
    scummvm/branches/branch-0-10-0/engines/agos/saveload.cpp

Modified: scummvm/branches/branch-0-10-0/Makefile
===================================================================
--- scummvm/branches/branch-0-10-0/Makefile	2007-06-09 07:48:27 UTC (rev 27229)
+++ scummvm/branches/branch-0-10-0/Makefile	2007-06-09 07:50:26 UTC (rev 27230)
@@ -23,7 +23,7 @@
 # Even more warnings...
 CXXFLAGS+= -pedantic -Wpointer-arith -Wcast-qual -Wconversion
 CXXFLAGS+= -Wshadow -Wimplicit -Wundef -Wnon-virtual-dtor
-CXXFLAGS+= -Wno-reorder -Wwrite-strings
+CXXFLAGS+= -Wno-reorder -Wwrite-strings -Werror
 
 # Disable RTTI and exceptions, and enabled checking of pointers returned by "new"
 CXXFLAGS+= -fno-rtti -fno-exceptions -fcheck-new

Modified: scummvm/branches/branch-0-10-0/engines/agos/saveload.cpp
===================================================================
--- scummvm/branches/branch-0-10-0/engines/agos/saveload.cpp	2007-06-09 07:48:27 UTC (rev 27229)
+++ scummvm/branches/branch-0-10-0/engines/agos/saveload.cpp	2007-06-09 07:50:26 UTC (rev 27230)
@@ -542,20 +542,23 @@
 		lastSlot = slot;
 		if (slot < 10) {
 			showMessageFormat(" ");
+		} else if (_language == Common::HB_ISR) {
+			lastSlot = (slot % 10) * 10;
+			lastSlot += slot / 10;
 		}
 
+		showMessageFormat("%d", lastSlot);
 		if (_language == Common::HB_ISR && !(slot % 10))
 			showMessageFormat("0");
-		showMessageFormat("%d", lastSlot);
 		showMessageFormat(".%s\n", dst);
 		dst += 18;
 		slot++;
 	}
 
 	if (!_saveOrLoad) {
-		if (_saveLoadRowCurPos + 6 == slot)
+		if (_saveLoadRowCurPos + 6 == slot) {
 			slot++;
-		else {
+		} else {
 			if (slot < 10)
 				showMessageFormat(" ");
 			showMessageFormat("%d.\n", slot);


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