Cleanup: Remove unneeded parameters.

This commit is contained in:
frosch
2023-09-16 23:27:16 +02:00
committed by frosch
parent b5885295f0
commit 5733145c59
16 changed files with 45 additions and 53 deletions

View File

@@ -156,7 +156,7 @@ static CommandCost IsValidTileForWaypoint(TileIndex tile, Axis axis, StationID *
extern void GetStationLayout(byte *layout, uint numtracks, uint plat_len, const StationSpec *statspec);
extern CommandCost FindJoiningWaypoint(StationID existing_station, StationID station_to_join, bool adjacent, TileArea ta, Waypoint **wp);
extern CommandCost CanExpandRailStation(const BaseStation *st, TileArea &new_ta, Axis axis);
extern CommandCost CanExpandRailStation(const BaseStation *st, TileArea &new_ta);
/**
* Convert existing rail to waypoint. Eg build a waypoint station over
@@ -224,7 +224,7 @@ CommandCost CmdBuildRailWaypoint(DoCommandFlag flags, TileIndex start_tile, Axis
/* check if we want to expand an already existing waypoint? */
if (wp->train_station.tile != INVALID_TILE) {
ret = CanExpandRailStation(wp, new_location, axis);
ret = CanExpandRailStation(wp, new_location);
if (ret.Failed()) return ret;
}