aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Boutonné2010-02-15 22:17:48 +0000
committerArnaud Boutonné2010-02-15 22:17:48 +0000
commit9426e86ede8a191227fb4f18b2881a20cd3b0232 (patch)
tree05e4ba802622df36229d76c25dd38135142f3074
parentcf005b623838ae2ed0424296aa770bf9eed0098d (diff)
downloadscummvm-rg350-9426e86ede8a191227fb4f18b2881a20cd3b0232.tar.gz
scummvm-rg350-9426e86ede8a191227fb4f18b2881a20cd3b0232.tar.bz2
scummvm-rg350-9426e86ede8a191227fb4f18b2881a20cd3b0232.zip
Playtoons - "Fascination" workaround for text is also required for Playtoons.
svn-id: r48067
-rw-r--r--engines/gob/resources.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/gob/resources.cpp b/engines/gob/resources.cpp
index b71ae37615..e36262f8d3 100644
--- a/engines/gob/resources.cpp
+++ b/engines/gob/resources.cpp
@@ -574,8 +574,9 @@ TextItem *Resources::getTextItem(uint16 id) const {
return 0;
if ((totItem.offset + totItem.size) > (_totTextTable->size)) {
// HACK: Some Fascination versions (Amiga, Atari and first PC floppies) have a different header, which is a problem here.
+// Playtoons also have the same problem (and workaround).
// TODO: Handle that in a proper way
- if ((_vm->getGameType() == kGameTypeFascination) & (_totTextTable->size < 0))
+ if (((_vm->getGameType() == kGameTypeFascination) | (_vm->getGameType() == kGameTypePlaytoons)) & (_totTextTable->size < 0))
warning("totTextTable with negative size id:%d offset:%d in file %s : (size: %d)", id, totItem.offset, _totFile.c_str(), _totTextTable->size);
else
return 0;