diff options
author | rubidium <rubidium@openttd.org> | 2007-05-18 17:31:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-18 17:31:41 +0000 |
commit | ba24c34f8558369cc0802c92963b40ff5c7b0bc2 (patch) | |
tree | 3eac526253ee6111911b7ea868ca46065b6d5889 /src/depot_gui.cpp | |
parent | 2196abd71d687564597a0d4f6f9defc8679ba87b (diff) | |
download | openttd-ba24c34f8558369cc0802c92963b40ff5c7b0bc2.tar.xz |
(svn r9869) -Codechange: replace some bytes with VehicleType, i.e. more type strictness.
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index d0fa558b0..8aea0298c 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -657,7 +657,7 @@ static void ResizeDefaultWindowSizeForRoadVehicles() _block_sizes[VEH_ROAD][1] = GetVehicleListHeight(VEH_ROAD); } -static void ResizeDefaultWindowSize(byte type) +static void ResizeDefaultWindowSize(VehicleType type) { EngineID engine; uint max_width = 0; @@ -697,7 +697,7 @@ void InitDepotWindowBlockSizes() ResizeDefaultWindowSize(VEH_AIRCRAFT); } -static void CreateDepotListWindow(Window *w, byte type) +static void CreateDepotListWindow(Window *w, VehicleType type) { WP(w, depot_d).type = type; _backup_orders_tile = 0; @@ -975,7 +975,7 @@ static void DepotWndProc(Window *w, WindowEvent *e) * @param tile The tile where the depot/hangar is located * @param type The type of vehicles in the depot */ -void ShowDepotWindow(TileIndex tile, byte type) +void ShowDepotWindow(TileIndex tile, VehicleType type) { Window *w; |