From 0c597bcebe7e125067acffef3a088c4828a97316 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Thu, 6 May 2004 15:09:47 +0000 Subject: [PATCH] Made worldmap to save game on exit. And removed Save menu item, it's useless, since the game automatically saves the game, and only confuses the player. SVN-Revision: 1007 --- src/menu.h | 1 - src/setup.cpp | 1 - src/worldmap.cpp | 5 +---- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/menu.h b/src/menu.h index 1ffefcbad..641b68ddf 100644 --- a/src/menu.h +++ b/src/menu.h @@ -53,7 +53,6 @@ enum GameMenuIDs { enum WorldMapMenuIDs { MNID_RETURNWORLDMAP, - MNID_SAVEGAME, MNID_QUITWORLDMAP }; diff --git a/src/setup.cpp b/src/setup.cpp index 36835e1be..5118cfdc0 100644 --- a/src/setup.cpp +++ b/src/setup.cpp @@ -467,7 +467,6 @@ void st_menu(void) worldmap_menu->additem(MN_LABEL,"Pause",0,0); worldmap_menu->additem(MN_HL,"",0,0); worldmap_menu->additem(MN_ACTION,"Continue",0,0,MNID_RETURNWORLDMAP); - worldmap_menu->additem(MN_ACTION,"Save",0,0,MNID_SAVEGAME); worldmap_menu->additem(MN_GOTO,"Options",0,options_menu); worldmap_menu->additem(MN_HL,"",0,0); worldmap_menu->additem(MN_ACTION,"Quit Game",0,0,MNID_QUITWORLDMAP); diff --git a/src/worldmap.cpp b/src/worldmap.cpp index cd91cb2a8..4a4fa39c2 100644 --- a/src/worldmap.cpp +++ b/src/worldmap.cpp @@ -743,12 +743,9 @@ WorldMap::update(float delta) { case MNID_RETURNWORLDMAP: // Return to game break; - case MNID_SAVEGAME: + case MNID_QUITWORLDMAP: // Quit Worldmap if (!savegame_file.empty()) savegame(savegame_file); - break; - - case MNID_QUITWORLDMAP: // Quit Worldmap quit = true; break; } -- 2.11.0