(svn r6748) -Codechange: Use already existing function to count active players.

This commit is contained in:
Darkvater
2006-10-12 11:42:57 +00:00
parent f389bd25ae
commit 23197f4c69
3 changed files with 12 additions and 19 deletions

View File

@@ -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;