Codechange: strongly type ClientPoolID

Also remove some of the artifical documented limits as they are not true; the
ClientPoolID was not sent over the network, so its size isn't of concern.
This commit is contained in:
Rubidium
2025-02-01 09:46:29 +01:00
committed by rubidium42
parent 47721edb1d
commit d55b9cff9d
4 changed files with 5 additions and 14 deletions

View File

@@ -17,7 +17,7 @@
#include "../timer/timer_game_economy.h"
/** Type for the pool with client information. */
using NetworkClientInfoPool = Pool<NetworkClientInfo, ClientPoolID, 8, MAX_CLIENT_SLOTS, PoolType::NetworkClient>;
using NetworkClientInfoPool = Pool<NetworkClientInfo, ClientPoolID, 8, ClientPoolID::End().base(), PoolType::NetworkClient>;
extern NetworkClientInfoPool _networkclientinfo_pool;
/** Container for all information known about a client. */