Changeset 565

Show
Ignore:
Timestamp:
09/17/07 07:47:18 (1 year ago)
Author:
takkaria
Message:

Fix the pesky "overwrite existing savefile?" prompt so it doesn't appear all the time.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/dungeon.c

    r538 r565  
    17691769void play_game(void) 
    17701770{ 
     1771        bool existing_dead_save = FALSE; 
     1772 
    17711773        /* Initialize */ 
    17721774        bool new_game = init_angband(); 
     
    18081810                        p_ptr->noscore |= NOSCORE_WIZARD; 
    18091811                } 
     1812 
     1813                else if (p_ptr->is_dead) 
     1814                { 
     1815                        existing_dead_save = TRUE; 
     1816                } 
    18101817        } 
    18111818 
     
    18881895                process_player_name(TRUE); 
    18891896 
    1890          
     1897 
    18911898        /* Check if we're overwriting a savefile */ 
    1892         while (new_game && file_exists(savefile)
     1899        while (new_game && !existing_dead_save
    18931900        { 
    18941901                bool overwrite = get_check("Continuing will overwrite an existing savefile.  Overwrite? ");