[Scummvm-cvs-logs] SF.net SVN: scummvm: [26586] scummvm/trunk/engines/parallaction/walk.cpp

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Mon Apr 23 23:31:04 CEST 2007


Revision: 26586
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26586&view=rev
Author:   peres001
Date:     2007-04-23 14:31:03 -0700 (Mon, 23 Apr 2007)

Log Message:
-----------
Fixed paths. (Short comment for big achievement).

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/walk.cpp

Modified: scummvm/trunk/engines/parallaction/walk.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/walk.cpp	2007-04-23 21:19:09 UTC (rev 26585)
+++ scummvm/trunk/engines/parallaction/walk.cpp	2007-04-23 21:31:03 UTC (rev 26586)
@@ -420,11 +420,13 @@
 
 uint16 queryPath(uint16 x, uint16 y) {
 
+	// NOTE: a better solution would have us mirror each byte in the mask in the loading routine
+	// AmigaDisk::loadPath() instead of doing it here.
+
 	byte _al = _buffer[y*40 + x/8];
-	byte _dl = 1 << (x % 8);
+	byte _dl = (_vm->getPlatform() == Common::kPlatformPC) ? (x & 7) : (7 - (x & 7));
 
-	return _al & _dl;
-
+	return _al & (1 << _dl);
 }
 
 void setPath(byte *path) {


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