diff --git a/src/k_pwrlv.c b/src/k_pwrlv.c index a3d25b50a..84379548a 100644 --- a/src/k_pwrlv.c +++ b/src/k_pwrlv.c @@ -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++; }