Made worldmap to save game on exit.
authorRicardo Cruz <rick2@aeiou.pt>
Thu, 6 May 2004 15:09:47 +0000 (15:09 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Thu, 6 May 2004 15:09:47 +0000 (15:09 +0000)
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
src/setup.cpp
src/worldmap.cpp

index 1ffefcb..641b68d 100644 (file)
@@ -53,7 +53,6 @@ enum GameMenuIDs {
 
 enum WorldMapMenuIDs {
   MNID_RETURNWORLDMAP,
-  MNID_SAVEGAME,
   MNID_QUITWORLDMAP
   };
 
index 36835e1..5118cfd 100644 (file)
@@ -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);
index cd91cb2..4a4fa39 100644 (file)
@@ -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;
             }