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

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Mon May 31 11:31:06 CEST 2010


Revision: 49345
          http://scummvm.svn.sourceforge.net/scummvm/?rev=49345&view=rev
Author:   m_kiewitz
Date:     2010-05-31 09:31:05 +0000 (Mon, 31 May 2010)

Log Message:
-----------
SCI: skip spaces in kReadNumber - this happens in lsl3 intro

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-05-31 09:21:15 UTC (rev 49344)
+++ scummvm/trunk/engines/sci/engine/kstring.cpp	2010-05-31 09:31:05 UTC (rev 49345)
@@ -151,6 +151,10 @@
 			source++;
 		}
 		while (*source) {
+			if (*source == ' ') {
+				source++; // skip spaces - happens in lsl3 intro
+				continue;
+			}
 			if ((*source < '0') || (*source > '9')) {
 				// TODO: this happens in lsl5 right in the intro -> we get '1' '3' 0xCD 0xCD 0xCD 0xCD 0xCD
 				//       find out why this happens and fix it


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