From 5502f3bf3d3b16458da1d8bfdd8bb9c960a1f10a Mon Sep 17 00:00:00 2001 From: Darkvater Date: Tue, 31 Jan 2006 22:16:15 +0000 Subject: (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. --- player.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player.h') diff --git a/player.h b/player.h index 001d17e31..00150ecbb 100644 --- a/player.h +++ b/player.h @@ -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)); -- cgit v1.2.3-54-g00ecf