Fix K_GetGPPlayerCount off by one

This commit is contained in:
Sally Coolatta 2024-03-27 16:58:58 -04:00
parent fea4b0bd2a
commit 6096c9bef4

View file

@ -104,15 +104,11 @@ INT16 K_CalculateGPRankPoints(UINT8 position, UINT8 numplayers)
--------------------------------------------------*/
UINT8 K_GetGPPlayerCount(UINT8 humans)
{
UINT8 playerCount = 8;
if (humans > 2)
{
// Add 3 bots per player beyond 2P
playerCount += (humans - 2) * 3;
}
return playerCount;
// 1P -> 8 total
// 2P -> 8 total
// 3P -> 12 total
// 4P -> 16 total
return max(min(humans * 4, MAXPLAYERS), 8);
}
/*--------------------------------------------------