No 1 PWRLV point in lobby of bots/guests, either
This commit is contained in:
parent
40927a2760
commit
a1a9f3556a
1 changed files with 8 additions and 0 deletions
|
|
@ -344,6 +344,7 @@ INT16 K_FinalPowerIncrement(player_t *player, INT16 yourPower, INT16 baseInc)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SINT8 powerType = K_UsingPowerLevels();
|
||||||
for (i = 0; i < MAXPLAYERS; i++)
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
{
|
{
|
||||||
if (!playeringame[i] || players[i].spectator)
|
if (!playeringame[i] || players[i].spectator)
|
||||||
|
|
@ -351,6 +352,13 @@ INT16 K_FinalPowerIncrement(player_t *player, INT16 yourPower, INT16 baseInc)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
INT16 theirPower = clientpowerlevels[i][powerType];
|
||||||
|
if (theirPower == 0)
|
||||||
|
{
|
||||||
|
// Don't count guests or bots.
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
numPlayers++;
|
numPlayers++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue