aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2007-01-26 22:27:59 +0000
committerJohannes Schickel2007-01-26 22:27:59 +0000
commit3a164d63edcdebc2c6f8ecffd2a10934e1a65775 (patch)
tree43fb898fd385adb9f268429cf75b6d1982fb4a26
parent10e45199c24ce0eb98c41276c21b0ceeb6f1870f (diff)
downloadscummvm-rg350-3a164d63edcdebc2c6f8ecffd2a10934e1a65775.tar.gz
scummvm-rg350-3a164d63edcdebc2c6f8ecffd2a10934e1a65775.tar.bz2
scummvm-rg350-3a164d63edcdebc2c6f8ecffd2a10934e1a65775.zip
Workaround for bug #1582672 ("KYRA1: Text crippled and drawn wrong").
svn-id: r25211
-rw-r--r--engines/kyra/script_v1.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/kyra/script_v1.cpp b/engines/kyra/script_v1.cpp
index be556c7cd6..d82430ec57 100644
--- a/engines/kyra/script_v1.cpp
+++ b/engines/kyra/script_v1.cpp
@@ -1118,6 +1118,13 @@ int KyraEngine::o1_setLogicPage(ScriptState *script) {
int KyraEngine::o1_fatPrint(ScriptState *script) {
debugC(3, kDebugLevelScriptFuncs, "o1_fatPrint(%p) ('%s', %d, %d, %d, %d, %d)", (const void *)script, stackPosString(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5));
+
+ // Workround for bug #1582672 ("KYRA1: Text crippled and drawn wrong")
+ // I'm not sure how the original handels this, since it seems to call
+ // printText also, maybe it fails somewhere inside...
+ // TODO: fix the reason for this workaround ;-)
+ if (_currentRoom == 117)
+ return 0;
_text->printText(stackPosString(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5));
return 0;
}