(svn r3500) - Workaround the inaccurate count of spectators/companies that can happen in certain border-cases. For now just dynamically get this value when requested so it is always right. To do properly all player/client creation/destruction needs a hook for networking.

This commit is contained in:
Darkvater
2006-01-31 22:16:15 +00:00
parent bfe7040cde
commit 5502f3bf3d
8 changed files with 40 additions and 40 deletions

View File

@@ -211,6 +211,8 @@ VARDEF Player _players[MAX_PLAYERS];
// NOSAVE: can be determined from player structs
VARDEF byte _player_colors[MAX_PLAYERS];
byte ActivePlayerCount(void);
static inline Player* GetPlayer(PlayerID i)
{
assert(i < lengthof(_players));