mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-10 00:34:32 +00:00
No 1 PWRLV point in lobby of bots/guests, either
This commit is contained in:
parent
3b755b7153
commit
84d723a33d
1 changed files with 8 additions and 0 deletions
|
|
@ -356,6 +356,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)
|
||||
|
|
@ -363,6 +364,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++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue