diff options
author | rubidium <rubidium@openttd.org> | 2009-11-16 15:11:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-16 15:11:54 +0000 |
commit | f02547553547b3e289ae686665a394a891871026 (patch) | |
tree | be3432b361c78b2c4812ec6f2cc06a3e53c73b30 /src/autoreplace_gui.cpp | |
parent | ae799e7b1b77870e74449da90afb586d4f155a25 (diff) | |
download | openttd-f02547553547b3e289ae686665a394a891871026.tar.xz |
(svn r18117) -Codechange: don't pass the location of the vehicle count but whether to show the vehicle count
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r-- | src/autoreplace_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp index cbf7f4588..b7d513f48 100644 --- a/src/autoreplace_gui.cpp +++ b/src/autoreplace_gui.cpp @@ -28,7 +28,7 @@ #include "table/strings.h" -void DrawEngineList(VehicleType type, int x, int r, int y, const GUIEngineList *eng_list, uint16 min, uint16 max, EngineID selected_id, int count_location, GroupID selected_group); +void DrawEngineList(VehicleType type, int x, int r, int y, const GUIEngineList *eng_list, uint16 min, uint16 max, EngineID selected_id, bool show_count, GroupID selected_group); /** Widget numbers of the autoreplace GUI. */ enum ReplaceVehicleWindowWidgets { @@ -334,7 +334,7 @@ public: /* Do the actual drawing */ DrawEngineList((VehicleType)this->window_number, r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP, - &this->engines[side], start, end, this->sel_engine[side], side == 0 ? r.right - WD_FRAMERECT_RIGHT : 0, this->sel_group); + &this->engines[side], start, end, this->sel_engine[side], side == 0, this->sel_group); break; } } |