(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 ce5dc84658
commit 40eecb3391
15 changed files with 827 additions and 1264 deletions

View File

@@ -83,7 +83,6 @@ MemoryPool _station_pool = { "Stations", STATION_POOL_MAX_BLOCKS, STATION_POOL_B
MemoryPool _roadstop_pool = { "RoadStop", ROADSTOP_POOL_MAX_BLOCKS, ROADSTOP_POOL_BLOCK_SIZE_BITS, sizeof(RoadStop), &RoadStopPoolNewBlock, NULL, 0, 0, NULL };
void ShowAircraftDepotWindow(TileIndex tile);
extern void UpdateAirplanesOnNewStation(Station *st);
static void MarkStationDirty(const Station* st)
@@ -2272,7 +2271,7 @@ static void AnimateTile_Station(TileIndex tile)
static void ClickTile_Station(TileIndex tile)
{
if (IsHangar(tile)) {
ShowAircraftDepotWindow(tile);
ShowDepotWindow(tile, VEH_Aircraft);
} else {
ShowStationViewWindow(GetStationIndex(tile));
}