Slightly modify savefile location and prompt

This commit is contained in:
John "Elwin" Edwards 2010-01-01 15:04:30 +00:00
parent 6188fd3be2
commit b24bc2e606
4 changed files with 13 additions and 7 deletions

View file

@ -70,8 +70,8 @@ char **envp;
strncpy(whoami, argv[2], 79);
whoami[79] = '\0';
use_savedir = TRUE;
/* look for savefile at SAVEDIR/UIDplayername.r3sav */
if (snprintf(file_name, 80, "%s%d%.10s.r3sav", SAVEDIR, md_getuid(), whoami) >= 80)
/* look for savefile at SAVEDIR/UID-playername.r3sav */
if (snprintf(file_name, 80, "%s%d-%.10s.r3sav", SAVEDIR, md_getuid(), whoami) >= 80)
{
/* this shouldn't happen */
strcpy(file_name, "rogue3.save");