aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2008-12-27 04:11:28 +0000
committerPaul Gilbert2008-12-27 04:11:28 +0000
commit6187ec38fb05ce013e5be59a21acba8b03f7334e (patch)
tree6d2045bd18232a559a922b78191221990f226429 /engines
parent56dbde4d57316a5d6a4685a3a100f1ca64851451 (diff)
downloadscummvm-rg350-6187ec38fb05ce013e5be59a21acba8b03f7334e.tar.gz
scummvm-rg350-6187ec38fb05ce013e5be59a21acba8b03f7334e.tar.bz2
scummvm-rg350-6187ec38fb05ce013e5be59a21acba8b03f7334e.zip
Added extra endian conversion. This may fix bug #2462700
svn-id: r35566
Diffstat (limited to 'engines')
-rw-r--r--engines/tinsel/polygons.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/tinsel/polygons.cpp b/engines/tinsel/polygons.cpp
index 037ff141ad..7d00a8a37a 100644
--- a/engines/tinsel/polygons.cpp
+++ b/engines/tinsel/polygons.cpp
@@ -1625,17 +1625,17 @@ static PPOLYGON CommonInits(PTYPE polyType, int pno, const Poly &pp, bool bResta
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);