[Scummvm-cvs-logs] SF.net SVN: scummvm:[35354] scummvm/trunk/engines/tinsel/strres.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sun Dec 14 05:24:42 CET 2008


Revision: 35354
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35354&view=rev
Author:   dreammaster
Date:     2008-12-14 04:24:41 +0000 (Sun, 14 Dec 2008)

Log Message:
-----------
Minor bugfix to string display in DW1 demo

Modified Paths:
--------------
    scummvm/trunk/engines/tinsel/strres.cpp

Modified: scummvm/trunk/engines/tinsel/strres.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/strres.cpp	2008-12-14 04:13:48 UTC (rev 35353)
+++ scummvm/trunk/engines/tinsel/strres.cpp	2008-12-14 04:24:41 UTC (rev 35354)
@@ -141,6 +141,10 @@
 	// base of string resource table
 	byte *pText = textBuffer;
 
+	// For Tinsel 0, Ids are decremented by 1
+	if (TinselV0)
+		--id;
+
 	// index into text resource file
 	uint32 index = 0;
 
@@ -170,10 +174,6 @@
 	// pointer to strings
 	pText = pText + index;
 
-	// For Tinsel 0 Ids, reduce the skip amount by 1
-	if (TinselV0 && (strSkip != 0))
-		--strSkip;
-
 	// skip to the correct string
 	while (strSkip-- != 0) {
 		// skip to next string


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