From f30142a55c4f7c12c5c99680c72dbd34cc99adb3 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Wed, 4 Jul 2007 00:58:26 +0000 Subject: [PATCH] Fix bug #1747154 - SIMON1: Another crash in dwarf cave. Another regression, caused by code cleanup. svn-id: r27889 --- engines/agos/string.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/engines/agos/string.cpp b/engines/agos/string.cpp index 90620517c87..521a3ab6ea6 100644 --- a/engines/agos/string.cpp +++ b/engines/agos/string.cpp @@ -370,10 +370,12 @@ void AGOSEngine::printScreenText(uint vgaSpriteId, uint color, const char *strin if (y < 2) y = 2; - if (getGameType() == GType_SIMON1) - animate(windowNum, 2, 199 + vgaSpriteId, x, y, 12); - else + if (getGameType() == GType_SIMON1) { + uint16 id = 199 + vgaSpriteId; + animate(windowNum, id / 100, id, x, y, 12); + } else { animate(windowNum, 2, vgaSpriteId, x, y, 12); + } } // The Feeble Files specific