Prevent changing name or savefile when SAVEDIR is used.
This commit is contained in:
parent
20d469d64f
commit
a90fd134ba
2 changed files with 29 additions and 7 deletions
|
|
@ -58,7 +58,10 @@ save_game()
|
|||
|
||||
mpos = 0;
|
||||
if (file_name[0] != '\0') {
|
||||
msg("Save file (%s)? ", file_name);
|
||||
if (use_savedir)
|
||||
msg("Save game? (y/n) ");
|
||||
else
|
||||
msg("Save file (%s)? ", file_name);
|
||||
do {
|
||||
c = wgetch(cw);
|
||||
if(c == ESCAPE) {
|
||||
|
|
@ -70,6 +73,10 @@ save_game()
|
|||
if (c == 'y')
|
||||
goto gotfile;
|
||||
}
|
||||
if (use_savedir) {
|
||||
msg("");
|
||||
return FALSE;
|
||||
}
|
||||
msg("File name: ");
|
||||
mpos = 0;
|
||||
buf[0] = '\0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue