summaryrefslogtreecommitdiff
path: root/station_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'station_cmd.c')
-rw-r--r--station_cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c
index 3c82289d9..d2f8288a5 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -79,7 +79,7 @@ static bool TileBelongsToRailStation(const Station *st, TileIndex tile)
return IsTileType(tile, MP_STATION) && GetStationIndex(tile) == st->index && IsRailwayStation(tile);
}
-static void MarkStationTilesDirty(const Station *st)
+void MarkStationTilesDirty(const Station *st)
{
TileIndex tile = st->train_tile;
int w, h;
@@ -2591,6 +2591,7 @@ static void UpdateStationWaiting(Station *st, int type, uint amount)
st->goods[type].enroute_time = 0;
st->goods[type].enroute_from = st->index;
InvalidateWindow(WC_STATION_VIEW, st->index);
+ MarkStationTilesDirty(st);
}
/** Rename a station