]> granicus.if.org Git - nethack/commitdiff
win32 bits
authornethack.allison <nethack.allison>
Sat, 15 Feb 2003 22:46:10 +0000 (22:46 +0000)
committernethack.allison <nethack.allison>
Sat, 15 Feb 2003 22:46:10 +0000 (22:46 +0000)
sys/share/pcunix.c
win/win32/mhsplash.c

index 7cd6b585380d1b16307684ee438fc0d2016d3352..f507b3a4a4623118496d45a951e113c53aa10b71 100644 (file)
@@ -133,7 +133,7 @@ getlock()
                             "\nThere are files from a game in progress under your name.");
                    Strcat(oops, "\nThe files are locked or inaccessible.");
                    Strcat(oops, " Is the other game still running?\n");
-                   if (strlen(fq_lock) < ((OOPS_BUFSZ - 1) - strlen(oops)))
+                   if (strlen(fq_lock) < ((OOPS_BUFSZ -16) - strlen(oops)))
                            Sprintf(eos(oops), "Cannot open %s", fq_lock);
                    unlock_file(HLOCK);
                    error(oops);
index 8fb2075cd518a511d962666e3e5091be78f2952c..96760dd74eef1607ce74620c307b39f5cc2a7dbd 100644 (file)
@@ -91,6 +91,7 @@ void mswin_display_splash_window (BOOL show_ver)
      /* Show news, if any */
      FILE *nf;
 
+     iflags.news = 0; /* prevent newgame() from re-displaying news */
      nf = fopen(NEWS, "r");
      if (nf != NULL) {
   char *buf = NULL;