diff rogue3/main.c @ 30:09da55b986ca

Slightly modify savefile location and prompt
author edwarj4
date Fri, 01 Jan 2010 15:04:30 +0000
parents da77eb183951
children 2dcd75e6a736
line wrap: on
line diff
--- a/rogue3/main.c	Tue Dec 29 12:45:38 2009 +0000
+++ b/rogue3/main.c	Fri Jan 01 15:04:30 2010 +0000
@@ -70,8 +70,8 @@
         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");