From 644ba1ceab478d27df933e65a38fab82fed7abbb Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 20 Aug 2009 12:04:31 +0000 Subject: Bugfix for assert in the DW2 Cartwheel scene svn-id: r43558 --- engines/tinsel/polygons.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'engines') 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; -- cgit v1.2.3