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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Thu Nov 1 01:33:12 CET 2007


Revision: 29349
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29349&view=rev
Author:   thebluegr
Date:     2007-10-31 17:33:12 -0700 (Wed, 31 Oct 2007)

Log Message:
-----------
It's now possible to exit the screens with Gorrister's heart in IHNM normally (i.e by walking to the exit, not using it) - like the original

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

Modified: scummvm/trunk/engines/saga/script.cpp
===================================================================
--- scummvm/trunk/engines/saga/script.cpp	2007-10-31 22:44:08 UTC (rev 29348)
+++ scummvm/trunk/engines/saga/script.cpp	2007-11-01 00:33:12 UTC (rev 29349)
@@ -721,6 +721,23 @@
 						doVerb();
 					}
 				}
+
+				// Auto-use hitzone with id 24576 (the exit to the left) in screens 16 - 19
+				// (screens with Gorrister's heart) in IHNM. For some reason, this zone does
+				// not have a corresponding action zone, so we auto-use it here, like the exits
+				// in Benny's chapter
+				if (_vm->_scene->currentChapterNumber() == 1 && 
+					_vm->_scene->currentSceneNumber() >= 16 && 
+					_vm->_scene->currentSceneNumber() <= 19 &&
+					_pendingVerb == getVerbType(kVerbWalkTo) &&
+					hitZone != NULL && hitZone->getHitZoneId() == 24576) {
+					_pendingVerb = getVerbType(kVerbUse);
+					if (objectTypeId(_pendingObject[0]) == kGameObjectActor) {
+						_vm->_actor->actorFaceTowardsObject(ID_PROTAG, _pendingObject[0]);
+						doVerb();
+					}
+				}
+
 		} else {
 			if (_pendingVerb == getVerbType(kVerbLookAt)) {
 				if (objectTypeId(_pendingObject[0]) != kGameObjectActor) {


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