[Scummvm-cvs-logs] SF.net SVN: scummvm:[49596] scummvm/trunk/engines/m4

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Fri Jun 11 13:08:37 CEST 2010


Revision: 49596
          http://scummvm.svn.sourceforge.net/scummvm/?rev=49596&view=rev
Author:   dreammaster
Date:     2010-06-11 11:08:37 +0000 (Fri, 11 Jun 2010)

Log Message:
-----------
Bugfixes to correctly scroll the background during animations

Modified Paths:
--------------
    scummvm/trunk/engines/m4/animation.cpp
    scummvm/trunk/engines/m4/graphics.cpp

Modified: scummvm/trunk/engines/m4/animation.cpp
===================================================================
--- scummvm/trunk/engines/m4/animation.cpp	2010-06-11 11:03:51 UTC (rev 49595)
+++ scummvm/trunk/engines/m4/animation.cpp	2010-06-11 11:08:37 UTC (rev 49596)
@@ -87,7 +87,7 @@
 	animStream->skip(2);
 	_field12 = animStream->readUint16LE() != 0;
 	_spriteListIndex = animStream->readUint16LE();
-	_scrollX = animStream->readUint16LE();
+	_scrollX = animStream->readSint16LE();
 	_scrollY = animStream->readSint16LE();
 	animStream->skip(10);
 	

Modified: scummvm/trunk/engines/m4/graphics.cpp
===================================================================
--- scummvm/trunk/engines/m4/graphics.cpp	2010-06-11 11:03:51 UTC (rev 49595)
+++ scummvm/trunk/engines/m4/graphics.cpp	2010-06-11 11:08:37 UTC (rev 49596)
@@ -769,7 +769,7 @@
 		return;
 
 	byte buffer[80];
-	int direction = (xAmount > 0) ? 1 : -1;
+	int direction = (xAmount > 0) ? -1 : 1;
 	int xSize = ABS(xAmount);
 	assert(xSize <= 80);
 


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