diff options
author | bjarni <bjarni@openttd.org> | 2007-01-21 00:01:47 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2007-01-21 00:01:47 +0000 |
commit | 44494a8e93b9f28e8b609ac78d802c843a6329a6 (patch) | |
tree | 8c1a71e7972a3d2f2e3847db25fc4cf7a81aca7f /src/depot_gui.cpp | |
parent | 799fbda05acb77ed1b621ecdd4ffbfae9030b0b2 (diff) | |
download | openttd-44494a8e93b9f28e8b609ac78d802c843a6329a6.tar.xz |
(svn r8293) -Codechange: overloaded ShowVehicleListWindow() so it can open all types of vehicle lists (depending on arguments)
- Also removed some unneeded arguments
- this also allows removing an if-else cascade in ShowVehicleListWindowLocal()
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 00e5d9d96..1bcc9babd 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -793,7 +793,7 @@ static void DepotWndProc(Window *w, WindowEvent *e) break; case DEPOT_WIDGET_VEHICLE_LIST: - ShowVehDepotOrders(GetTileOwner(w->window_number), WP(w, depot_d).type, w->window_number); + ShowVehicleListWindow(GetTileOwner(w->window_number), WP(w, depot_d).type, (TileIndex)w->window_number); break; case DEPOT_WIDGET_AUTOREPLACE: |