# HG changeset patch # User belugas # Date 1213905506 0 # Node ID 928d49f5c9138e6732aad908fe90714c68e8fed5 # Parent c944157c30a1213745c7a08c1a980305008338fa (svn r13586) -Codechange: Using default parameter, for cases where there are few exceptions. diff -r c944157c30a1 -r 928d49f5c913 src/toolbar_gui.cpp --- a/src/toolbar_gui.cpp Thu Jun 19 17:54:23 2008 +0000 +++ b/src/toolbar_gui.cpp Thu Jun 19 19:58:26 2008 +0000 @@ -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 ToolbarStationsClick(Window *w) { - PopupMainPlayerToolbMenu(w, TBN_STATIONS, 0); + PopupMainPlayerToolbMenu(w, TBN_STATIONS); } static void MenuClickStations(int index) @@ -338,7 +338,7 @@ 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 ToolbarPlayersClick(Window *w) { - PopupMainPlayerToolbMenu(w, TBN_PLAYERS, 0); + PopupMainPlayerToolbMenu(w, TBN_PLAYERS); } static void MenuClickCompany(int index)