1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00

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.
This commit is contained in:
zaxcav
2016-09-29 22:02:21 +02:00
parent e26b2d4047
commit 269571edcc

View File

@@ -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;