]> git.pond.sub.org Git - empserver/commitdiff
(play): Simplify counting of players.
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 9 Jun 2005 22:21:54 +0000 (22:21 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 9 Jun 2005 22:21:54 +0000 (22:21 +0000)
src/lib/commands/play.c

index ef17bf3f3e20cf53bcfdb6555ec5b4d3781f7624..59109e00ee6c7782fd3b6e1b4229e304cff31e9f 100644 (file)
@@ -47,15 +47,13 @@ play(void)
 {
     struct player *joe;
     int saw = 0;
-    int count = 0;
 
+    play_header();
     for (joe = player_prev(0); joe; joe = player_prev(joe)) {
-       if (!count++)
-           play_header();
        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;
 }