bad wizkit items

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.
This commit is contained in:
arromdee
2002-03-23 18:30:38 +00:00
parent 869e5e7c0c
commit 399b801315
2 changed files with 6 additions and 1 deletions

View 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;
}