]> granicus.if.org Git - nethack/commitdiff
bad wizkit items
authorarromdee <arromdee>
Sat, 23 Mar 2002 18:30:38 +0000 (18:30 +0000)
committerarromdee <arromdee>
Sat, 23 Mar 2002 18:30:38 +0000 (18:30 +0000)
Format multiple bad wizkit items a little better.  It will scroll off the screen
if there are more than a screen of bad items, but that's probably not too
likely.

doc/fixes34.1
src/files.c

index c91de554706bffe59a93faa5dde2a692be7b2d81..8be5c27bd6255862710216f162db1613833403d1 100644 (file)
@@ -11,6 +11,7 @@ add wishing for "nothing" and genociding "none" to the conduct section
 allow both wishing and genocide to accept either "none" or "nothing" when
        the player wants to decline
 left word in format string in get_wet() causing "The spellbook fadefades"
+two bad wizkit items in a row shouldn't make the user hit space many times
 
 
 Platform- and/or Interface-Specific Fixes
index 79e3a390779ed64d3991a4991849d137697ef5c0..00d539b3f763a82f1e8a8f1baaf4cb3587e6bcf9 100644 (file)
@@ -1671,6 +1671,8 @@ read_wizkit()
        FILE *fp;
        char *ep, buf[BUFSZ];
        struct obj *otmp;
+       boolean bad_items = FALSE;
+
        if (!wizard || !(fp = fopen_wizkit_file())) return;
 
        while (fgets(buf, 4*BUFSZ, fp)) {
@@ -1682,10 +1684,12 @@ read_wizkit()
                                otmp = addinv(otmp);
                        } else {
                            raw_printf("Bad wizkit item: \"%.50s\"", buf);
-                           wait_synch();
+                           bad_items = TRUE;
                        }
                }
        }
+       if (bad_items)
+           wait_synch();
        (void) fclose(fp);
        return;
 }