diff options
author | tron <tron@openttd.org> | 2006-05-21 13:51:36 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-05-21 13:51:36 +0000 |
commit | 3282efda88bd42c3536dc73c048f2a484e017ae1 (patch) | |
tree | a0f8f35f08e024362e9469a68b9d671758791404 /roadveh_gui.c | |
parent | de189080579e25c1da6120f53f3e2538ddf5480f (diff) | |
download | openttd-3282efda88bd42c3536dc73c048f2a484e017ae1.tar.xz |
(svn r4940) Remove the dubious feature of remembering the last built depot. It serves no real purpose except causing confusion
Diffstat (limited to 'roadveh_gui.c')
-rw-r--r-- | roadveh_gui.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c index a5c4876c2..035333c7b 100644 --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -968,25 +968,11 @@ static void PlayerRoadVehWndProc(Window *w, WindowEvent *e) } } break; - case 9: { /* Build new Vehicle */ - TileIndex tile; - - if (!IsWindowOfPrototype(w, _player_roadveh_widgets)) - break; - - tile = _last_built_road_depot_tile; - do { - if (IsTileDepotType(tile, TRANSPORT_ROAD) && IsTileOwner(tile, _local_player)) { - ShowRoadDepotWindow(tile); - ShowBuildRoadVehWindow(tile); - return; - } - - tile = TILE_MASK(tile + 1); - } while (tile != _last_built_road_depot_tile); - + case 9: /* Build new Vehicle */ + if (!IsWindowOfPrototype(w, _player_roadveh_widgets)) break; ShowBuildRoadVehWindow(0); - } break; + break; + case 10: { if (!IsWindowOfPrototype(w, _player_roadveh_widgets)) break; |