summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-09-26 16:47:51 +0000
committerbjarni <bjarni@openttd.org>2006-09-26 16:47:51 +0000
commit40eecb339193a9c5fb100237a1a863687ea31c55 (patch)
tree381d620a928fbc6c40266c4078ae71959a878f36 /rail_cmd.c
parentce5dc846587432d853c72fcd36648ec9311eabbd (diff)
downloadopenttd-40eecb339193a9c5fb100237a1a863687ea31c55.tar.xz
(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
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 99d67ab4e..653444ffa 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -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));
}