X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fgamemodes%2Fgamemode%2Flms%2Fsv_lms.qc;h=61a6d701bde01e03345a660b53669f60e93179b8;hp=66f2937c638b35f20f15f6fc8bd01631a9d638aa;hb=3ad1cb410e1f1b2c0bb526f14f3a47c77cb0a62f;hpb=6864ceb1a2658c9d251bfcd0f803a8a531c254d0 diff --git a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc index 66f2937c63..61a6d701bd 100644 --- a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc +++ b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc @@ -184,15 +184,15 @@ void lms_RemovePlayer(entity player) float player_rank = GameRules_scoring_add(player, LMS_RANK, 0); if (!player_rank) { - int pl_cnt = 0; - FOREACH_CLIENT(IS_PLAYER(it) && it.frags != FRAGS_PLAYER_OUT_OF_GAME, { - pl_cnt++; - }); if (player.lms_spectate_warning < 2) { if(IS_BOT_CLIENT(player)) bot_clear(player); player.frags = FRAGS_PLAYER_OUT_OF_GAME; + int pl_cnt = 0; + FOREACH_CLIENT(IS_PLAYER(it) && it.frags != FRAGS_PLAYER_OUT_OF_GAME, { + pl_cnt++; + }); GameRules_scoring_add(player, LMS_RANK, pl_cnt + 1); } else