From cc76fbee56917238f5e4f69d1df55e7a2f324762 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 22 Oct 2007 20:41:58 +0000 Subject: Added a workaround for a script bug in IHNM, which occurs in the original as well. An invisible note will no longer be created in the top left corner of the screen, when the note in the first screen of Gorrister's chapter is read svn-id: r29247 --- engines/saga/script.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/engines/saga/script.cpp b/engines/saga/script.cpp index c749c1d9e8..cd10522dfc 100644 --- a/engines/saga/script.cpp +++ b/engines/saga/script.cpp @@ -776,6 +776,19 @@ void Script::whichObject(const Point& mousePoint) { objectId = ID_NOTHING; newObjectId = ID_NOTHING; } + + // WORKAROUND for a script bug in the original game scripts of IHNM + // When the note (item 16406) in the first screen of Gorrister's chapter + // is read, an invisible ghost object is created in the upper left corner + // of the screen, that the player can interact with. We ignore that invalid + // object here + if (_vm->getGameType() == GType_IHNM) { + if (objectId == 16406 && mousePoint.x < 60 && mousePoint.y < 60) { + objectId = ID_NOTHING; + newObjectId = ID_NOTHING; + newRightButtonVerb = getVerbType(kVerbNone); + } + } } else { actor = _vm->_actor->getActor(newObjectId); objectId = newObjectId; -- cgit v1.2.3