Fix the Mickey Mouse glitch

This commit is contained in:
NepDisk 2025-04-21 20:39:59 -04:00
parent f14bd6c599
commit 066b5f461f

View file

@ -654,7 +654,7 @@ void K_RetireBots(void)
{
UINT8 index = P_RandomKey(usableskins);
skinnum = grabskins[index];
if (usableskins >= K_GetGPPlayerCount(1))
if (((cv_ingamecap.value > 0) && (usableskins+1 >= cv_ingamecap.value)) || (usableskins+1 >= cv_maxplayers.value))
{
grabskins[index] = grabskins[--usableskins];
}