From 269571edcc5643179c1d791a55c8640bcdfc81df Mon Sep 17 00:00:00 2001 From: zaxcav Date: Thu, 29 Sep 2016 22:02:21 +0200 Subject: [PATCH] get_ride_queue_end() fails if any tile in the queue goes up towards the station entry. In this situation the pathfinding goal is set to the station entry location rather than the queue end location. --- src/peep/peep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peep/peep.c b/src/peep/peep.c index 2c8a491337..99dc633a7a 100644 --- a/src/peep/peep.c +++ b/src/peep/peep.c @@ -9267,7 +9267,7 @@ static void get_ride_queue_end(sint16 *x, sint16 *y, sint16 *z){ if (!footpath_element_is_sloped(mapElement)) break; - if (footpath_element_get_slope_direction(mapElement) != direction) + if (footpath_element_get_slope_direction(mapElement) != (direction ^ 2)) break; baseZ -= 2;