[Scummvm-cvs-logs] SF.net SVN: scummvm:[47500] scummvm/trunk/engines/sci/engine/kstring.cpp

waltervn at users.sourceforge.net waltervn at users.sourceforge.net
Sun Jan 24 16:21:51 CET 2010


Revision: 47500
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47500&view=rev
Author:   waltervn
Date:     2010-01-24 15:21:51 +0000 (Sun, 24 Jan 2010)

Log Message:
-----------
SCI: Fix left aligning and centering in kFormat.

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kstring.cpp

Modified: scummvm/trunk/engines/sci/engine/kstring.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kstring.cpp	2010-01-24 12:19:09 UTC (rev 47499)
+++ scummvm/trunk/engines/sci/engine/kstring.cpp	2010-01-24 15:21:51 UTC (rev 47500)
@@ -241,16 +241,11 @@
 
 				if (xfer == '0')
 					fillchar = '0';
-				else
+				else if (xfer == '=')
+					align = ALIGN_CENTRE;
+				else if (isdigit(xfer) || (xfer == '-'))
+					source--; // Go to start of length argument
 
-					if (xfer == '=') {
-						align = ALIGN_CENTRE;
-						source++;
-					} else
-
-						if (isdigit(xfer))
-							source--; /* Stepped over length argument */
-
 				str_leng = strtol(source, &destp, 10);
 
 				if (destp > source)


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