[Scummvm-cvs-logs] SF.net SVN: scummvm: [27889] scummvm/trunk/engines/agos/string.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Wed Jul 4 02:58:26 CEST 2007


Revision: 27889
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27889&view=rev
Author:   Kirben
Date:     2007-07-03 17:58:26 -0700 (Tue, 03 Jul 2007)

Log Message:
-----------
Fix bug #1747154 - SIMON1: Another crash in dwarf cave. Another regression, caused by code cleanup.

Modified Paths:
--------------
    scummvm/trunk/engines/agos/string.cpp

Modified: scummvm/trunk/engines/agos/string.cpp
===================================================================
--- scummvm/trunk/engines/agos/string.cpp	2007-07-04 00:01:18 UTC (rev 27888)
+++ scummvm/trunk/engines/agos/string.cpp	2007-07-04 00:58:26 UTC (rev 27889)
@@ -370,10 +370,12 @@
 	if (y < 2)
 		y = 2;
 
-	if (getGameType() == GType_SIMON1)
-		animate(windowNum, 2, 199 + vgaSpriteId, x, y, 12);
-	else
+	if (getGameType() == GType_SIMON1) {
+		uint16 id = 199 + vgaSpriteId;
+		animate(windowNum, id / 100, id, x, y, 12);
+	} else {
 		animate(windowNum, 2, vgaSpriteId, x, y, 12);
+	}
 }
 
 // The Feeble Files specific


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