diff urogue/save.c @ 259:096d3cfd9afd

UltraRogue: add the -n option.
author John "Elwin" Edwards
date Thu, 09 Feb 2017 16:29:45 -0500
parents c495a4f288c6
children ac42afd962e4
line wrap: on
line diff
--- a/urogue/save.c	Wed Feb 08 19:50:36 2017 -0500
+++ b/urogue/save.c	Thu Feb 09 16:29:45 2017 -0500
@@ -90,6 +90,8 @@
 
     if ((infd = fopen(file, "r")) == NULL)
     {
+        if (use_savedir && errno == ENOENT)
+            return TRUE;
         perror(file);
         return(FALSE);
     }