[Scummvm-cvs-logs] SF.net SVN: scummvm:[43559] scummvm/branches/branch-1-0-0/engines/tinsel/ polygons.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Thu Aug 20 14:07:54 CEST 2009
Revision: 43559
http://scummvm.svn.sourceforge.net/scummvm/?rev=43559&view=rev
Author: dreammaster
Date: 2009-08-20 12:07:54 +0000 (Thu, 20 Aug 2009)
Log Message:
-----------
Backport of bugfix for assert in the DW2 Cartwheel scene
Modified Paths:
--------------
scummvm/branches/branch-1-0-0/engines/tinsel/polygons.cpp
Modified: scummvm/branches/branch-1-0-0/engines/tinsel/polygons.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/engines/tinsel/polygons.cpp 2009-08-20 12:04:31 UTC (rev 43558)
+++ scummvm/branches/branch-1-0-0/engines/tinsel/polygons.cpp 2009-08-20 12:07:54 UTC (rev 43559)
@@ -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