From f95fb9bec05a483ce873c024ec1bef44be9f526c Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 1 Jan 2022 23:23:41 +0100 Subject: [PATCH] LMS: fix screwed up rankings when a spectator disconnects --- qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.2