Fixed a couple of bugs when deleting slots:
authorRicardo Cruz <rick2@aeiou.pt>
Thu, 29 Apr 2004 17:32:01 +0000 (17:32 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Thu, 29 Apr 2004 17:32:01 +0000 (17:32 +0000)
- don't quit when back button is pressed;
- refresh slots when one is deleted.

SVN-Revision: 849

src/title.cpp

index b7d2d9a..478fc35 100644 (file)
@@ -343,7 +343,6 @@ void title(void)
                 char str[1024];
                 sprintf(str,"Are you sure you want to delete slot %d?", slot);
                 
-                Menu::set_current(0);
                 draw_background();
 
                 if(confirm_dialog(str))
@@ -353,8 +352,8 @@ void title(void)
                   remove(str);
                   }
 
+                update_load_save_game_menu(load_game_menu);
                 update_time = st_get_ticks();
-                Menu::set_current(load_game_menu);
                 }
               else if (process_load_game_menu())
                 {