[Scummvm-cvs-logs] SF.net SVN: scummvm:[36196] scummvm/trunk/engines/tinsel/polygons.cpp
joostp at users.sourceforge.net
joostp at users.sourceforge.net
Mon Feb 2 00:06:36 CET 2009
Revision: 36196
http://scummvm.svn.sourceforge.net/scummvm/?rev=36196&view=rev
Author: joostp
Date: 2009-02-01 23:06:35 +0000 (Sun, 01 Feb 2009)
Log Message:
-----------
endian fix
Modified Paths:
--------------
scummvm/trunk/engines/tinsel/polygons.cpp
Modified: scummvm/trunk/engines/tinsel/polygons.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/polygons.cpp 2009-02-01 22:21:57 UTC (rev 36195)
+++ scummvm/trunk/engines/tinsel/polygons.cpp 2009-02-01 23:06:35 UTC (rev 36196)
@@ -214,7 +214,7 @@
const byte *pRecord = _pData;
int typeVal = nextLong(_pData);
- if ((typeVal == 5) && TinselV2) ++typeVal;
+ if ((FROM_LE_32(typeVal) == 5) && TinselV2) typeVal = TO_LE_32(6);
type = (POLY_TYPE)typeVal;
for (int i = 0; i < 4; ++i) x[i] = nextLong(_pData);
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