(svn r66) -Fix Station list updated on station deletion/station rename

-Changed debug messages to comply with DEBUG(name, level) heuristics
This commit is contained in:
darkvater
2004-08-16 14:48:35 +00:00
parent d33c833a82
commit 68c9b7c3ad
10 changed files with 26 additions and 25 deletions

View File

@@ -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);
}