(play): Simplify counting of players.

This commit is contained in:
Markus Armbruster 2005-06-09 22:21:54 +00:00
parent 5a8a66746a
commit aaf19dd6ab

View file

@ -47,15 +47,13 @@ play(void)
{
struct player *joe;
int saw = 0;
int count = 0;
for (joe = player_prev(0); joe; joe = player_prev(joe)) {
if (!count++)
play_header();
for (joe = player_prev(0); joe; joe = player_prev(joe)) {
saw += play_list(joe);
}
if (player->god || opt_BLITZ)
pr("%d player%s\n", count, splur(count));
pr("%d player%s\n", saw, splur(saw));
return RET_OK;
}