(svn r6513) -Codechange: unified the code to draw depot windows

This change is intended to make it easier to make depot behaviour consistent
   and faster to code when adding more features in the future
   The user interface should hopefully not be affected by this
This commit is contained in:
bjarni
2006-09-26 16:47:51 +00:00
parent 65a3777a40
commit f7769e885e
15 changed files with 827 additions and 1264 deletions

View File

@@ -40,7 +40,6 @@ const byte _track_sloped_sprites[14] = {
19, 16
};
void ShowTrainDepotWindow(TileIndex tile);
/* 4
* ---------
@@ -1920,7 +1919,7 @@ static uint32 GetTileTrackStatus_Track(TileIndex tile, TransportType mode)
static void ClickTile_Track(TileIndex tile)
{
if (IsTileDepotType(tile, TRANSPORT_RAIL)) {
ShowTrainDepotWindow(tile);
ShowDepotWindow(tile, VEH_Train);
} else if (IsRailWaypoint(tile)) {
ShowRenameWaypointWindow(GetWaypointByTile(tile));
}