From 13ef28215d69c2c841af719aff62b508e42bcb60 Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Fri, 25 Apr 2008 22:38:40 +0000 Subject: minor drawShape() bug fix for Malcolm's shadow svn-id: r31728 --- engines/kyra/screen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp index 6ffd0ace79..b7536803a8 100644 --- a/engines/kyra/screen.cpp +++ b/engines/kyra/screen.cpp @@ -1181,7 +1181,7 @@ void Screen::drawShape(uint8 pageNum, const uint8 *shapeData, int x, int y, int &Screen::drawShapePlotType0, // used by Kyra 1 + 2 &Screen::drawShapePlotType1, // used by Kyra 3 0, - &Screen::drawShapePlotType3_7, // used by Kyra 1 (invisibility) + &Screen::drawShapePlotType3_7, // used by Kyra 3 (shadow) &Screen::drawShapePlotType4, // used by Kyra 1, 2 + 3 &Screen::drawShapePlotType5, // used by Kyra 1 &Screen::drawShapePlotType6, // used by Kyra 1 (invisibility) @@ -1189,7 +1189,7 @@ void Screen::drawShape(uint8 pageNum, const uint8 *shapeData, int x, int y, int &Screen::drawShapePlotType8, // used by Kyra 2 &Screen::drawShapePlotType9, // used by Kyra 1 + 3 0, - &Screen::drawShapePlotType11_15, // used by Kyra 1 /invisibility) + &Screen::drawShapePlotType11_15, // used by Kyra 1 (invisibility) + Kyra 3 (shadow) &Screen::drawShapePlotType12, // used by Kyra 2 &Screen::drawShapePlotType13, // used by Kyra 1 &Screen::drawShapePlotType14, // used by Kyra 1 (invisibility) @@ -1635,7 +1635,7 @@ void Screen::drawShapePlotType1(uint8 *dst, uint8 cmd) { } void Screen::drawShapePlotType3_7(uint8 *dst, uint8 cmd) { - cmd = dst[cmd]; + cmd = *dst; for (int i = 0; i < _dsTableLoopCount; ++i) cmd = _dsTable[cmd]; -- cgit v1.2.3