void showscores (void) { int i, j; lflush (); lcreat ((char *) 0); if (readboard () < 0) { return; } i = winshou (); j = shou (0); if (i + j == 0) { lprcat (esb); } else { lprc ('\n'); } lflush (); }
/* * showallscores() Function to show scores and the iven lists that go with them * * Returns nothing of value */ void showallscores(void) { int i, j; lflush(); lcreat((char *) 0); if (readboard() < 0) return; c[WEAR] = c[WIELD] = c[SHIELD] = -1; /* not wielding or wearing * anything */ for (i = 0; i < MAXPOTION; i++) potionname[i] = potionhide[i]; for (i = 0; i < MAXSCROLL; i++) scrollname[i] = scrollhide[i]; i = winshou(); j = shou(1); if (i + j == 0) lprcat(esb); else lprc('\n'); lflush(); }