From 2bdb32061bc11b5f4aecd7e96407704dfea3f908 Mon Sep 17 00:00:00 2001 From: Duncan Frost Date: Wed, 15 Jul 2015 21:35:34 +0100 Subject: [PATCH] Fix path connection to ride entrances. Fixes #1616. Small fix to queue chaining as well. --- src/world/footpath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/world/footpath.c b/src/world/footpath.c index d0de5d7f9c..4d58cfbed6 100644 --- a/src/world/footpath.c +++ b/src/world/footpath.c @@ -931,7 +931,7 @@ static void loc_6A6D7E( loc_6A6F1F: if (query) { - if (sub_6E59DC(x, y, mapElement->base_height, mapElement->clearance_height, direction & 2)) { + if (sub_6E59DC(x, y, mapElement->base_height, mapElement->clearance_height, direction ^ 2)) { return; } if (footpath_element_is_queue(mapElement)) { @@ -970,7 +970,7 @@ static void loc_6A6C85( return; if (map_element_get_type(mapElement) == MAP_ELEMENT_TYPE_ENTRANCE) { - if (entrance_has_direction(mapElement, (direction - mapElement->type) & 3)) { + if (!entrance_has_direction(mapElement, (direction - mapElement->type) & 3)) { return; } }