aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorTravis Howell2007-07-04 00:58:26 +0000
committerTravis Howell2007-07-04 00:58:26 +0000
commitf30142a55c4f7c12c5c99680c72dbd34cc99adb3 (patch)
treefa2191b66b90c8a39bb0bc05d6f7f088c91ea2d2 /engines/agos
parent87594aae7343a3540eb744bc49ec0ee390f7b27f (diff)
downloadscummvm-rg350-f30142a55c4f7c12c5c99680c72dbd34cc99adb3.tar.gz
scummvm-rg350-f30142a55c4f7c12c5c99680c72dbd34cc99adb3.tar.bz2
scummvm-rg350-f30142a55c4f7c12c5c99680c72dbd34cc99adb3.zip
Fix bug #1747154 - SIMON1: Another crash in dwarf cave. Another regression, caused by code cleanup.
svn-id: r27889
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/string.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/agos/string.cpp b/engines/agos/string.cpp
index 90620517c8..521a3ab6ea 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