summaryrefslogtreecommitdiff
path: root/water_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
commitf7769e885e1a928018a9be33553a887cb00babf7 (patch)
tree381d620a928fbc6c40266c4078ae71959a878f36 /water_cmd.c
parent65a3777a403f1c3eb0f2856bf0b0073b4c83fad9 (diff)
downloadopenttd-f7769e885e1a928018a9be33553a887cb00babf7.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 'water_cmd.c')
-rw-r--r--water_cmd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/water_cmd.c b/water_cmd.c
index 4d235118e..3b30a027f 100644
--- a/water_cmd.c
+++ b/water_cmd.c
@@ -716,14 +716,12 @@ static uint32 GetTileTrackStatus_Water(TileIndex tile, TransportType mode)
return ts * 0x101;
}
-extern void ShowShipDepotWindow(TileIndex tile);
-
static void ClickTile_Water(TileIndex tile)
{
if (GetWaterTileType(tile) == WATER_DEPOT) {
TileIndex tile2 = GetOtherShipDepotTile(tile);
- ShowShipDepotWindow(tile < tile2 ? tile : tile2);
+ ShowDepotWindow(tile < tile2 ? tile : tile2, VEH_Ship);
}
}