Mercurial > hg > openttd
changeset 15317:bd76dc37e6ab draft
(svn r19958) -Codechange: move common code from Waypoint and Station destructors to BaseStation destructor
author | smatz <smatz@openttd.org> |
---|---|
date | Fri, 11 Jun 2010 00:20:24 +0000 |
parents | 2a60c2c9506b |
children | 12894068fa23 |
files | src/station.cpp src/waypoint.cpp |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/station.cpp +++ b/src/station.cpp @@ -45,6 +45,8 @@ DeleteWindowById(WC_ROADVEH_LIST, wno | (VEH_ROAD << 11)); DeleteWindowById(WC_SHIPS_LIST, wno | (VEH_SHIP << 11)); DeleteWindowById(WC_AIRCRAFT_LIST, wno | (VEH_AIRCRAFT << 11)); + + this->sign.MarkDirty(); } Station::Station(TileIndex tile) : @@ -88,7 +90,6 @@ } } - this->sign.MarkDirty(); InvalidateWindowData(WC_STATION_LIST, this->owner, 0); DeleteWindowById(WC_STATION_VIEW, index);