aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorVhati2019-01-10 02:23:04 -0500
committerFilippos Karapetis2019-01-14 00:23:15 +0200
commitf55fc02e512b79ea944253b2a515b162e0c86174 (patch)
tree495f125b6ffd272b83227c4fb787aac2c2a018d5 /engines/sci
parenteb84113222562a3da2161ca7190cfd26a57f8080 (diff)
downloadscummvm-rg350-f55fc02e512b79ea944253b2a515b162e0c86174.tar.gz
scummvm-rg350-f55fc02e512b79ea944253b2a515b162e0c86174.tar.bz2
scummvm-rg350-f55fc02e512b79ea944253b2a515b162e0c86174.zip
SCI32: Fix QFG4 forest 580 pathfinding
Adds a penalty workaround for room 580 entry from the south, bug #10870
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kpathing.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/engine/kpathing.cpp b/engines/sci/engine/kpathing.cpp
index fb1183e8d7..3177fbdd07 100644
--- a/engines/sci/engine/kpathing.cpp
+++ b/engines/sci/engine/kpathing.cpp
@@ -1419,6 +1419,10 @@ static void AStar(PathfindingState *s) {
// fails to turn at a point on the screen edge, passes the poly's corner,
// then approaches the destination from deeper in the room.
(g_sci->getGameId() == GID_QFG4 && g_sci->getEngineState()->currentRoomNumber() == 563) ||
+
+ // QFG4 room 580 - Hero zig-zags into the room (bug #10870).
+ // Entering from the south (581) off-screen behind an obstacle, as above.
+ (g_sci->getGameId() == GID_QFG4 && g_sci->getEngineState()->currentRoomNumber() == 580) ||
#endif
false;