diff options
author | belugas <belugas@openttd.org> | 2008-06-19 19:58:26 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-06-19 19:58:26 +0000 |
commit | 4cc9439d6541d1c2e0e6f40eb9e59b26826bd145 (patch) | |
tree | 24058815698d96cb98d70804efc39fc9d3c27bc2 /src | |
parent | 6bd2d0ffcb40a308e03a05b73de615da24f59526 (diff) | |
download | openttd-4cc9439d6541d1c2e0e6f40eb9e59b26826bd145.tar.xz |
(svn r13586) -Codechange: Using default parameter, for cases where there are few exceptions.
Diffstat (limited to 'src')
-rw-r--r-- | src/toolbar_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index 7927b88b8..90a11e92d 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -46,7 +46,7 @@ #include "table/sprites.h" static void PopupMainToolbMenu(Window *parent, uint16 parent_button, StringID base_string, byte item_count, byte disabled_mask = 0, int sel_index = 0, int checked_items = 0); -static void PopupMainPlayerToolbMenu(Window *parent, int main_button, int gray); +static void PopupMainPlayerToolbMenu(Window *parent, int main_button, int gray = 0); static void SplitToolbar(Window *w); RailType _last_built_railtype; @@ -326,7 +326,7 @@ static void MenuClickSubsidies(int index) static void ToolbarStationsClick(Window *w) { - PopupMainPlayerToolbMenu(w, TBN_STATIONS, 0); + PopupMainPlayerToolbMenu(w, TBN_STATIONS); } static void MenuClickStations(int index) @@ -338,7 +338,7 @@ static void MenuClickStations(int index) static void ToolbarFinancesClick(Window *w) { - PopupMainPlayerToolbMenu(w, TBN_FINANCES, 0); + PopupMainPlayerToolbMenu(w, TBN_FINANCES); } static void MenuClickFinances(int index) @@ -350,7 +350,7 @@ static void MenuClickFinances(int index) static void ToolbarPlayersClick(Window *w) { - PopupMainPlayerToolbMenu(w, TBN_PLAYERS, 0); + PopupMainPlayerToolbMenu(w, TBN_PLAYERS); } static void MenuClickCompany(int index) |