summaryrefslogtreecommitdiff
path: root/station_cmd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-12-03 18:28:42 +0000
committerpeter1138 <peter1138@openttd.org>2006-12-03 18:28:42 +0000
commit52d0c3b08aae6056f37d5c9efd8b8bc75d13b883 (patch)
treeb67104eb5ab49b9e82e66ee1ab375caba476e42c /station_cmd.c
parentdcf1575a1d8b68df50996d65080487a2d1740cc7 (diff)
downloadopenttd-52d0c3b08aae6056f37d5c9efd8b8bc75d13b883.tar.xz
(svn r7335) -Codechange: redraw station tiles when cargo is moved, for newstations
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