Mercurial > hg > openttd
changeset 9610:9fef7cbc9e5b draft
(svn r13663) -Codechange: Use a default parameter, hoping to reduce the different signatures of functions in menus
author | belugas <belugas@openttd.org> |
---|---|
date | Mon, 30 Jun 2008 14:58:58 +0000 |
parents | fe9766039f5b |
children | 8ac3cfc62291 |
files | src/toolbar_gui.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -281,7 +281,7 @@ PopupMainToolbMenu(w, TBSE_SAVESCENARIO, STR_0292_SAVE_SCENARIO, SLEME_MENUCOUNT); } -static void MenuClickSaveLoad(int index) +static void MenuClickSaveLoad(int index = 0) { if (_game_mode == GM_EDITOR) { switch (index) { @@ -939,7 +939,7 @@ switch (keycode) { case WKC_F1: case WKC_PAUSE: ToolbarPauseClick(this); break; case WKC_F2: ShowGameOptions(); break; - case WKC_F3: MenuClickSaveLoad(0); break; + case WKC_F3: MenuClickSaveLoad(); break; case WKC_F4: ShowSmallMap(); break; case WKC_F5: ShowTownDirectory(); break; case WKC_F6: ShowSubsidiesList(); break; @@ -1144,7 +1144,7 @@ switch (keycode) { case WKC_F1: case WKC_PAUSE: ToolbarPauseClick(this); break; case WKC_F2: ShowGameOptions(); break; - case WKC_F3: MenuClickSaveLoad(0); break; + case WKC_F3: MenuClickSaveLoad(); break; case WKC_F4: ToolbarScenGenLand(this); break; case WKC_F5: ToolbarScenGenTown(this); break; case WKC_F6: ToolbarScenGenIndustry(this); break;