summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-10-12 11:42:57 +0000
committerDarkvater <darkvater@openttd.org>2006-10-12 11:42:57 +0000
commit23197f4c69520f01edfe470f52df619886712ab5 (patch)
tree36f9f8314abfadad8df25176c1475acfe3b83c12 /players.c
parentf389bd25ae1aa0e9e04854fb931e150965a86a54 (diff)
downloadopenttd-23197f4c69520f01edfe470f52df619886712ab5.tar.xz
(svn r6748) -Codechange: Use already existing function to count active players.
Diffstat (limited to 'players.c')
-rw-r--r--players.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/players.c b/players.c
index b4a279ab6..93f559d5a 100644
--- a/players.c
+++ b/players.c
@@ -192,18 +192,6 @@ void DrawPlayerFace(uint32 face, int color, int x, int y)
}
}
-byte ActivePlayerCount(void)
-{
- const Player *p;
- byte count = 0;
-
- FOR_ALL_PLAYERS(p) {
- if (p->is_active) count++;
- }
-
- return count;
-}
-
void InvalidatePlayerWindows(const Player *p)
{
PlayerID pid = p->index;