[Scummvm-cvs-logs] SF.net SVN: scummvm: [22055] scummvm/trunk/engines/simon/items.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Thu Apr 20 03:47:10 CEST 2006
Revision: 22055
Author: kirben
Date: 2006-04-20 03:45:51 -0700 (Thu, 20 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22055&view=rev
Log Message:
-----------
getPathPosn script opcode needs to use int16 to get correct position, fixes entering teleporter in village in FF
Modified Paths:
--------------
scummvm/trunk/engines/simon/items.cpp
Modified: scummvm/trunk/engines/simon/items.cpp
===================================================================
--- scummvm/trunk/engines/simon/items.cpp 2006-04-20 08:58:30 UTC (rev 22054)
+++ scummvm/trunk/engines/simon/items.cpp 2006-04-20 10:45:51 UTC (rev 22055)
@@ -1457,8 +1457,8 @@
if (!p)
continue;
for (j = 0; readUint16Wrapper(&p[0]) != end; j++, p += 2) {
- x_diff = abs((int)(readUint16Wrapper(&p[0]) - x));
- y_diff = abs((int)(readUint16Wrapper(&p[1]) - 12 - y));
+ x_diff = abs((int16)(readUint16Wrapper(&p[0]) - x));
+ y_diff = abs((int16)(readUint16Wrapper(&p[1]) - 12 - y));
if (x_diff < y_diff) {
x_diff /= 4;
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