[Scummvm-cvs-logs] SF.net SVN: scummvm: [29486] scummvm/trunk/engines/saga/script.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Mon Nov 12 20:49:42 CET 2007


Revision: 29486
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29486&view=rev
Author:   thebluegr
Date:     2007-11-12 11:49:42 -0800 (Mon, 12 Nov 2007)

Log Message:
-----------
Added a workaround for a problematic object in Gorrister's chapter (Edna's key)

Modified Paths:
--------------
    scummvm/trunk/engines/saga/script.cpp

Modified: scummvm/trunk/engines/saga/script.cpp
===================================================================
--- scummvm/trunk/engines/saga/script.cpp	2007-11-12 17:56:49 UTC (rev 29485)
+++ scummvm/trunk/engines/saga/script.cpp	2007-11-12 19:49:42 UTC (rev 29486)
@@ -861,6 +861,19 @@
 					objectFlags = 0;
 					newRightButtonVerb = hitZone->getRightButtonVerb() & 0x7f;
 
+					// WORKAROUND for a problematic object in IHNM
+					// In the freezer room, the key that drops is made of a hitzone which
+					// contains the key object itself. We change the object ID that the
+					// hitzone contains (object ID 24578 - "The key") to the ID of the key
+					// object itself (object ID 16402 - "Edna's key"), as the user can keep
+					// hovering the cursor to both items, but can only pick up one
+					if (_vm->getGameType() == GType_IHNM) {
+						if (_vm->_scene->currentChapterNumber() == 1 && _vm->_scene->currentSceneNumber() == 24) {
+							if (objectId == 24578)
+								objectId = 16402;
+						}
+					}
+
 					if (_vm->getGameType() == GType_ITE) {
 
 						if (newRightButtonVerb == getVerbType(kVerbWalkOnly)) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list