aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2009-08-20 12:04:31 +0000
committerPaul Gilbert2009-08-20 12:04:31 +0000
commit644ba1ceab478d27df933e65a38fab82fed7abbb (patch)
tree1cc59c718c44e3a07b41696eeee3a01d9b53fec9 /engines
parentb22ec9b4b60e1bd21df5a0283a15a5ae7f322244 (diff)
downloadscummvm-rg350-644ba1ceab478d27df933e65a38fab82fed7abbb.tar.gz
scummvm-rg350-644ba1ceab478d27df933e65a38fab82fed7abbb.tar.bz2
scummvm-rg350-644ba1ceab478d27df933e65a38fab82fed7abbb.zip
Bugfix for assert in the DW2 Cartwheel scene
svn-id: r43558
Diffstat (limited to 'engines')
-rw-r--r--engines/tinsel/polygons.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/tinsel/polygons.cpp b/engines/tinsel/polygons.cpp
index bb2daea206..825abc9a6b 100644
--- a/engines/tinsel/polygons.cpp
+++ b/engines/tinsel/polygons.cpp
@@ -1996,8 +1996,14 @@ void GetPolyNode(HPOLYGON hp, int *pNodeX, int *pNodeY) {
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;