(play): Simplify counting of players.
This commit is contained in:
parent
5a8a66746a
commit
aaf19dd6ab
1 changed files with 2 additions and 4 deletions
|
@ -47,15 +47,13 @@ play(void)
|
||||||
{
|
{
|
||||||
struct player *joe;
|
struct player *joe;
|
||||||
int saw = 0;
|
int saw = 0;
|
||||||
int count = 0;
|
|
||||||
|
|
||||||
|
play_header();
|
||||||
for (joe = player_prev(0); joe; joe = player_prev(joe)) {
|
for (joe = player_prev(0); joe; joe = player_prev(joe)) {
|
||||||
if (!count++)
|
|
||||||
play_header();
|
|
||||||
saw += play_list(joe);
|
saw += play_list(joe);
|
||||||
}
|
}
|
||||||
if (player->god || opt_BLITZ)
|
if (player->god || opt_BLITZ)
|
||||||
pr("%d player%s\n", count, splur(count));
|
pr("%d player%s\n", saw, splur(saw));
|
||||||
|
|
||||||
return RET_OK;
|
return RET_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue