From 9426e86ede8a191227fb4f18b2881a20cd3b0232 Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Mon, 15 Feb 2010 22:17:48 +0000 Subject: Playtoons - "Fascination" workaround for text is also required for Playtoons. svn-id: r48067 --- engines/gob/resources.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3