check equal to and greater than for skin check
This commit is contained in:
parent
80453af9b5
commit
31fbfdc512
2 changed files with 3 additions and 3 deletions
|
|
@ -322,7 +322,7 @@ void K_UpdateMatchRaceBots(void)
|
|||
{
|
||||
UINT8 index = P_RandomKey(usableskins);
|
||||
skinnum = grabskins[index];
|
||||
if (((cv_ingamecap.value > 0) && (usableskins > cv_ingamecap.value)) || (usableskins > cv_maxplayers.value))
|
||||
if (((cv_ingamecap.value > 0) && (usableskins >= cv_ingamecap.value)) || (usableskins >= cv_maxplayers.value))
|
||||
{
|
||||
grabskins[index] = grabskins[--usableskins];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -274,7 +274,7 @@ void K_InitGrandPrixBots(void)
|
|||
{
|
||||
UINT8 index = P_RandomKey(usableskins);
|
||||
skinnum = grabskins[index];
|
||||
if (usableskins > K_GetGPPlayerCount(1))
|
||||
if (usableskins >= K_GetGPPlayerCount(1))
|
||||
{
|
||||
grabskins[index] = grabskins[--usableskins];
|
||||
}
|
||||
|
|
@ -654,7 +654,7 @@ void K_RetireBots(void)
|
|||
{
|
||||
UINT8 index = P_RandomKey(usableskins);
|
||||
skinnum = grabskins[index];
|
||||
if (usableskins > K_GetGPPlayerCount(1))
|
||||
if (usableskins >= K_GetGPPlayerCount(1))
|
||||
{
|
||||
grabskins[index] = grabskins[--usableskins];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue