[Scummvm-cvs-logs] SF.net SVN: scummvm:[35566] scummvm/trunk/engines/tinsel/polygons.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Sat Dec 27 05:11:28 CET 2008
Revision: 35566
http://scummvm.svn.sourceforge.net/scummvm/?rev=35566&view=rev
Author: dreammaster
Date: 2008-12-27 04:11:28 +0000 (Sat, 27 Dec 2008)
Log Message:
-----------
Added extra endian conversion. This may fix bug #2462700
Modified Paths:
--------------
scummvm/trunk/engines/tinsel/polygons.cpp
Modified: scummvm/trunk/engines/tinsel/polygons.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/polygons.cpp 2008-12-27 02:36:08 UTC (rev 35565)
+++ scummvm/trunk/engines/tinsel/polygons.cpp 2008-12-27 04:11:28 UTC (rev 35566)
@@ -1625,17 +1625,17 @@
p->pIndex = pno;
for (i = 0; i < 4; i++) { // Polygon definition
- p->cx[i] = (short)pp.x[i];
- p->cy[i] = (short)pp.y[i];
+ p->cx[i] = (short)FROM_LE_32(pp.x[i]);
+ p->cy[i] = (short)FROM_LE_32(pp.y[i]);
}
if (!bRestart) {
hp = PolygonIndex(p);
- volatileStuff[hp].xoff = (short)pp.xoff;
- volatileStuff[hp].yoff = (short)pp.yoff;
+ volatileStuff[hp].xoff = (short)FROM_LE_32(pp.xoff);
+ volatileStuff[hp].yoff = (short)FROM_LE_32(pp.yoff);
}
- p->polyID = pp.id; // Identifier
+ p->polyID = FROM_LE_32(pp.id); // Identifier
FiddlyBit(p);
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