summaryrefslogtreecommitdiff
path: root/ship_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'ship_gui.c')
-rw-r--r--ship_gui.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/ship_gui.c b/ship_gui.c
index ee02af483..1f9feb9c1 100644
--- a/ship_gui.c
+++ b/ship_gui.c
@@ -1065,24 +1065,10 @@ static void PlayerShipsWndProc(Window *w, WindowEvent *e)
}
} break;
- case 9: { /* Build new Vehicle */
- TileIndex tile;
-
+ case 9: /* Build new Vehicle */
if (!IsWindowOfPrototype(w, _player_ships_widgets)) break;
-
- tile = _last_built_ship_depot_tile;
- do {
- if (IsTileDepotType(tile, TRANSPORT_WATER) && IsTileOwner(tile, _local_player)) {
- ShowShipDepotWindow(tile);
- ShowBuildShipWindow(tile);
- return;
- }
-
- tile = TILE_MASK(tile + 1);
- } while (tile != _last_built_ship_depot_tile);
-
ShowBuildShipWindow(0);
- } break;
+ break;
case 10: {
if (!IsWindowOfPrototype(w, _player_ships_widgets)) break;