diff options
author | Travis Howell | 2007-07-04 00:58:26 +0000 |
---|---|---|
committer | Travis Howell | 2007-07-04 00:58:26 +0000 |
commit | f30142a55c4f7c12c5c99680c72dbd34cc99adb3 (patch) | |
tree | fa2191b66b90c8a39bb0bc05d6f7f088c91ea2d2 | |
parent | 87594aae7343a3540eb744bc49ec0ee390f7b27f (diff) | |
download | scummvm-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
-rw-r--r-- | engines/agos/string.cpp | 8 |
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 |