Fix const issues around GetTrainStopLocation/GetCurrentMaxSpeed

This commit is contained in:
Jonathan G Rennison
2021-01-29 02:13:08 +00:00
parent b711f94d1c
commit 4e0804b791
3 changed files with 24 additions and 10 deletions

View File

@@ -3618,7 +3618,7 @@ static VehicleEnterTileStatus VehicleEnter_Station(Vehicle *v, TileIndex tile, i
int station_ahead;
int station_length;
int stop = GetTrainStopLocation(station_id, tile, Train::From(v), &station_ahead, &station_length, x, y);
int stop = GetTrainStopLocation(station_id, tile, Train::From(v), true, &station_ahead, &station_length, x, y);
/* Stop whenever that amount of station ahead + the distance from the
* begin of the platform to the stop location is longer than the length