(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()
This commit is contained in:
bjarni
2007-01-21 00:01:47 +00:00
parent 470619a8bb
commit c8c27b9740
6 changed files with 32 additions and 35 deletions

View File

@@ -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: