From: terencehill Date: Sat, 1 Jan 2022 22:23:41 +0000 (+0100) Subject: LMS: fix screwed up rankings when a spectator disconnects X-Git-Tag: xonotic-v0.8.5~255 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f95fb9bec05a483ce873c024ec1bef44be9f526c;p=xonotic%2Fxonotic-data.pk3dir.git LMS: fix screwed up rankings when a spectator disconnects --- diff --git a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc index 8f545955c..37551c7f8 100644 --- a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc +++ b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc @@ -265,10 +265,10 @@ void lms_RemovePlayer(entity player) }); GameRules_scoring_add(player, LMS_RANK, pl_cnt + 1); } - else + else if (player.lmsplayer) { int min_forfeiter_rank = 665; // different from 666 - FOREACH_CLIENT(true, { + FOREACH_CLIENT(it != player, { // update rank of other players that were eliminated if (it.frags == FRAGS_PLAYER_OUT_OF_GAME) {