(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 799fbda05a
commit 44494a8e93
6 changed files with 32 additions and 35 deletions

View File

@@ -482,7 +482,7 @@ static void OrdersWndProc(Window *w, WindowEvent *e)
OrderClick_Transfer(w, v);
break;
case 11: /* Vehicle with same shared Orders button */
ShowVehWithSharedOrders(v, v->type);
ShowVehicleListWindow(v);
break;
case 12:
OrderClick_Refit(w, v);