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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Tue Jun 5 01:11:00 CEST 2007


Revision: 27094
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27094&view=rev
Author:   thebluegr
Date:     2007-06-04 16:10:59 -0700 (Mon, 04 Jun 2007)

Log Message:
-----------
IHNM: Add a temporary hack for the crash that occurs when climbing the staircase to the second floor of the zeppelin in chapter 1

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

Modified: scummvm/trunk/engines/saga/sfuncs.cpp
===================================================================
--- scummvm/trunk/engines/saga/sfuncs.cpp	2007-06-04 22:53:40 UTC (rev 27093)
+++ scummvm/trunk/engines/saga/sfuncs.cpp	2007-06-04 23:10:59 UTC (rev 27094)
@@ -731,6 +731,15 @@
 
 	if (objectTypeId(objectId) == kGameObjectHitZone) {
 		hitZone = _vm->_scene->_objectMap->getHitZone(objectIdToIndex(objectId));
+	} else if (_vm->getGameType() == GType_IHNM && _vm->_scene->currentChapterNumber() == 1 &&
+			   _vm->_scene->currentSceneNumber() == 14) {
+		// HACK: Don't disable the requested hitzone in room 14 in chapter 1 (Gorrister) of IHNM
+		// Apparently, this is used in that room to disable the tear at the very end of the
+		// corridor. This fixes the staircase in scenes 4 and 14
+		// FIXME: Remove this hack
+		warning("HACK: Prevent crash at staircase with Gorrister");
+		// Do nothing
+		return;
 	} else {
 		hitZone = _vm->_scene->_actionMap->getHitZone(objectIdToIndex(objectId));
 	}


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