mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 09:18:38 +00:00
Added extra endian conversion. This may fix bug #2462700
svn-id: r35566
This commit is contained in:
parent
56dbde4d57
commit
6187ec38fb
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user