[Scummvm-cvs-logs] SF.net SVN: scummvm:[43558] scummvm/trunk/engines/tinsel/polygons.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Thu Aug 20 14:04:31 CEST 2009
Revision: 43558
http://scummvm.svn.sourceforge.net/scummvm/?rev=43558&view=rev
Author: dreammaster
Date: 2009-08-20 12:04:31 +0000 (Thu, 20 Aug 2009)
Log Message:
-----------
Bugfix for assert in the DW2 Cartwheel scene
Modified Paths:
--------------
scummvm/trunk/engines/tinsel/polygons.cpp
Modified: scummvm/trunk/engines/tinsel/polygons.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/polygons.cpp 2009-08-20 10:14:14 UTC (rev 43557)
+++ scummvm/trunk/engines/tinsel/polygons.cpp 2009-08-20 12:04:31 UTC (rev 43558)
@@ -1996,8 +1996,14 @@
Poly pp(LockMem(pHandle), Polys[hp]->pIndex);
- *pNodeX = FROM_LE_32(pp.nodex);
- *pNodeY = FROM_LE_32(pp.nodey);
+ // WORKAROUND: Invalid node adjustment for DW2 Cartwheel scene refer polygon
+ if (TinselV2 && (pHandle == 0x74191900) && (hp == 8)) {
+ *pNodeX = 480;
+ *pNodeY = 408;
+ } else {
+ *pNodeX = FROM_LE_32(pp.nodex);
+ *pNodeY = FROM_LE_32(pp.nodey);
+ }
if (TinselV2) {
*pNodeX += volatileStuff[hp].xoff;
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