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