[Scummvm-cvs-logs] SF.net SVN: scummvm:[45522] scummvm/trunk/engines/sci/engine/kpathing.cpp

waltervn at users.sourceforge.net waltervn at users.sourceforge.net
Fri Oct 30 05:47:02 CET 2009


Revision: 45522
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45522&view=rev
Author:   waltervn
Date:     2009-10-30 04:47:02 +0000 (Fri, 30 Oct 2009)

Log Message:
-----------
SCI: AvoidPath: Add workaround for pathfinding problem when Patti walks to
control room in LSL5, room 660.

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kpathing.cpp

Modified: scummvm/trunk/engines/sci/engine/kpathing.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kpathing.cpp	2009-10-30 03:54:50 UTC (rev 45521)
+++ scummvm/trunk/engines/sci/engine/kpathing.cpp	2009-10-30 04:47:02 UTC (rev 45522)
@@ -1470,6 +1470,14 @@
 			return NULL;
 		}
 
+		// WORKAROUND LSL5 room 660. Priority glitch due to us choosing a different path
+		// than SSCI. Happens when Patti walks to the control room.
+		if ((s->_gameName == "lsl5") && (s->currentRoomNumber() == 660) && (Common::Point(67, 131) == *new_start) && (Common::Point(229, 101) == *new_end)) {
+			debug(1, "[avoidpath] Applying fix for priority problem in LSL5, room 660");
+			pf_s->_prependPoint = new_start;
+			new_start = new Common::Point(77, 107);
+		}
+
 		if (s->_gameName == "longbow" && s->currentRoomNumber() == 210)
 				fixLongbowRoom210(pf_s, *new_start, *new_end);
 


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