mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Fix #2972. Station lengths now correctly calculated.
Issue caused by counting number of stations off by one. This would cause the calculator to return 1 even on failure after a station element being removed.
This commit is contained in:
@@ -4242,7 +4242,7 @@ static bool track_remove_station_element(int x, int y, int z, int direction, int
|
||||
int stationY0 = y;
|
||||
int stationX1 = x;
|
||||
int stationY1 = y;
|
||||
int stationLength = 1;
|
||||
int stationLength = 0;
|
||||
int byte_F441D1 = -1;
|
||||
|
||||
rct_ride *ride = get_ride(rideIndex);
|
||||
|
||||
Reference in New Issue
Block a user