No 1 PWRLV point in lobby of bots/guests, either

This commit is contained in:
Sally Coolatta 2024-01-16 22:34:47 -05:00 committed by NepDisk
parent 40927a2760
commit a1a9f3556a

View file

@ -344,6 +344,7 @@ INT16 K_FinalPowerIncrement(player_t *player, INT16 yourPower, INT16 baseInc)
return 0;
}
SINT8 powerType = K_UsingPowerLevels();
for (i = 0; i < MAXPLAYERS; i++)
{
if (!playeringame[i] || players[i].spectator)
@ -351,6 +352,13 @@ INT16 K_FinalPowerIncrement(player_t *player, INT16 yourPower, INT16 baseInc)
continue;
}
INT16 theirPower = clientpowerlevels[i][powerType];
if (theirPower == 0)
{
// Don't count guests or bots.
continue;
}
numPlayers++;
}