summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-06-30 14:58:58 +0000
committerbelugas <belugas@openttd.org>2008-06-30 14:58:58 +0000
commit4f5eae2789d8d6067af7242b451db0b86e950c01 (patch)
treee4bb4bee5aa171aaa3d4040fb388dcd10b67edb0 /src
parent7ed892411a29ae3cabd7834add886cf7628b914b (diff)
downloadopenttd-4f5eae2789d8d6067af7242b451db0b86e950c01.tar.xz
(svn r13663) -Codechange: Use a default parameter, hoping to reduce the different signatures of functions in menus
Diffstat (limited to 'src')
-rw-r--r--src/toolbar_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index f54508334..bb9d1e847 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -281,7 +281,7 @@ static void ToolbarScenSaveOrLoad(Window *w)
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 @@ struct MainToolbarWindow : Window {
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 @@ public:
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;