mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
fix #2984: refactor error in ride_shop_connected
This commit is contained in:
@@ -3141,8 +3141,8 @@ static void ride_shop_connected(rct_ride* ride, int ride_idx)
|
||||
// Flip direction north<->south, east<->west
|
||||
uint8 face_direction = count ^ 2;
|
||||
|
||||
int y2 = y - TileDirectionDelta[face_direction].x;
|
||||
int x2 = x - TileDirectionDelta[face_direction].y;
|
||||
int y2 = y - TileDirectionDelta[face_direction].y;
|
||||
int x2 = x - TileDirectionDelta[face_direction].x;
|
||||
|
||||
if (map_coord_is_connected(x2 / 32, y2 / 32, mapElement->base_height, face_direction))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user