summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 859753325..7edaf7928 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -968,6 +968,13 @@ static inline byte *CreateMulti(byte *layout, int n, byte b)
return layout;
}
+/**
+ * Create the station layout for the given number of tracks and platform length.
+ * @param layout The layout to write to.
+ * @param numtracks The number of tracks to write.
+ * @param plat_len The length of the platforms.
+ * @param statspec The specification of the station to (possibly) get the layout from.
+ */
void GetStationLayout(byte *layout, int numtracks, int plat_len, const StationSpec *statspec)
{
if (statspec != NULL && statspec->lengths >= plat_len &&
@@ -3470,6 +3477,12 @@ static bool CanRemoveRoadWithStop(TileIndex tile, DoCommandFlag flags)
return true;
}
+/**
+ * Clear a single tile of a station.
+ * @param tile The tile to clear.
+ * @param flags The DoCommand flags related to the "command".
+ * @return The cost, or error of clearing.
+ */
CommandCost ClearTile_Station(TileIndex tile, DoCommandFlag flags)
{
if (flags & DC_AUTO) {