From 68c9b7c3ad902784c07b0d76c81c87e073c826b3 Mon Sep 17 00:00:00 2001 From: darkvater Date: Mon, 16 Aug 2004 14:48:35 +0000 Subject: (svn r66) -Fix Station list updated on station deletion/station rename -Changed debug messages to comply with DEBUG(name, level) heuristics --- station_cmd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'station_cmd.c') diff --git a/station_cmd.c b/station_cmd.c index 17471e419..df9a387f8 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -1998,6 +1998,7 @@ static void DeleteStation(Station *st) DeleteName(st->string_id); MarkStationDirty(st); _station_sort_dirty = true; + InvalidateWindowClasses(WC_STATION_LIST); index = st->index; DeleteWindowById(WC_STATION_VIEW, index); @@ -2403,6 +2404,7 @@ static void ChangeTileOwner_Station(uint tile, byte old_player, byte new_player) _map_owner[tile] = new_player; st->owner = new_player; _station_sort_dirty = true; + InvalidateWindowClasses(WC_STATION_LIST); } else { DoCommandByTile(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR); } -- cgit v1.2.3-54-g00ecf