diff options
author | tron <tron@openttd.org> | 2005-10-16 09:13:04 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-16 09:13:04 +0000 |
commit | 66bf4f863dc4e98a16772f661f6b3e214c3d92f1 (patch) | |
tree | 3d8e77c53a48b7cf354777fe120740126f2a7615 /vehicle_gui.c | |
parent | ab657338ec74150e083f2b04a2c3975e1546ad13 (diff) | |
download | openttd-66bf4f863dc4e98a16772f661f6b3e214c3d92f1.tar.xz |
(svn r3049) Replace byte/int/uint by RailType where appropriate
Diffstat (limited to 'vehicle_gui.c')
-rw-r--r-- | vehicle_gui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c index 77a872752..b7a03acf8 100644 --- a/vehicle_gui.c +++ b/vehicle_gui.c @@ -25,7 +25,7 @@ static uint32 _last_vehicle_idx; // cached index to hopefully speed up na static bool _internal_sort_order; // descending/ascending static uint16 _player_num_engines[256]; -static byte _railtype_selected_in_replace_gui; +static RailType _railtype_selected_in_replace_gui; typedef int CDECL VehicleSortListingTypeFunction(const void*, const void*); @@ -414,7 +414,7 @@ static int CDECL VehicleMaxSpeedSorter(const void *a, const void *b) /* if show_outdated is selected, it do not sort psudo engines properly but it draws all engines * if used compined with show_cars set to false, it will work as intended. Replace window do it like that * this was a big hack even before show_outdated was added. Stupid newgrf :p */ -static void train_engine_drawing_loop(int *x, int *y, int *pos, int *sel, int *selected_id, byte railtype, +static void train_engine_drawing_loop(int *x, int *y, int *pos, int *sel, int *selected_id, RailType railtype, uint8 lines_drawn, bool is_engine, bool show_cars, bool show_outdated) { EngineID i; @@ -462,7 +462,7 @@ static void train_engine_drawing_loop(int *x, int *y, int *pos, int *sel, int *s static void SetupScrollStuffForReplaceWindow(Window *w) { - byte railtype; + RailType railtype; int selected_id[2] = {-1,-1}; int sel[2]; int count = 0; @@ -625,7 +625,7 @@ static void DrawEngineArrayInReplaceWindow(Window *w, int x, int y, int x2, int switch (WP(w,replaceveh_d).vehicletype) { case VEH_Train: { - byte railtype = _railtype_selected_in_replace_gui; + RailType railtype = _railtype_selected_in_replace_gui; DrawString(157, 99 + (14 * w->vscroll.cap), _rail_types_list[railtype], 0x10); /* draw sorting criteria string */ |