Changeset 144

Show
Ignore:
Timestamp:
05/15/07 10:10:34 (2 years ago)
Author:
ajps
Message:

Fix for the 'confirming savefile overwrite' feature. Still not well-tested, as I don't have a way to test it locally.

Files:

Legend:

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

    r137 r144  
    19931993        { 
    19941994                /* Ask for confirmation */ 
    1995                 bool newname = get_check("A savefile using that name already exists.  Choose a new name? "); 
     1995                bool overwrite = get_check("Continuing will overwrite an existing savefile.  Overwrite? "); 
    19961996          
    1997                 if (newname) 
    1998                 { 
    1999                         get_name(TRUE)
     1997                if (overwrite) 
     1998                { 
     1999                        break
    20002000                }                         
    20012001                else 
    20022002                { 
    2003                         break
     2003                        get_name(TRUE)
    20042004                }                         
    20052005        } 
  • trunk/src/load.c

    r136 r144  
    22682268        if (!err) 
    22692269        { 
     2270                *reusing_savefile = TRUE; 
     2271 
    22702272                /* Give a conversion warning */ 
    22712273                if ((version_major != sf_major) || 
     
    23032305                        /* Forget turns */ 
    23042306                        turn = old_turn = 0; 
    2305  
     2307                         
    23062308                        /* Done */ 
    23072309                        return (TRUE); 
     
    23172319                        my_strcpy(p_ptr->died_from, "(alive and well)", sizeof(p_ptr->died_from)); 
    23182320                } 
    2319  
    2320                 *reusing_savefile = TRUE; 
    23212321 
    23222322                /* Success */