]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
LMS: fix newcomers not being able to join the game if a player forfeited
authorterencehill <piuntn@gmail.com>
Wed, 22 Jan 2020 19:18:38 +0000 (20:18 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 22 Jan 2020 19:18:38 +0000 (20:18 +0100)
qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc

index d590895a4775bea5a84fe7db05e6082b48ac3ff7..66f2937c638b35f20f15f6fc8bd01631a9d638aa 100644 (file)
@@ -197,14 +197,12 @@ void lms_RemovePlayer(entity player)
                }
                else
                {
                }
                else
                {
-                       lms_lowest_lives = 999;
                        FOREACH_CLIENT(true, {
                                if (it.frags == FRAGS_PLAYER_OUT_OF_GAME)
                                {
                                        float it_rank = GameRules_scoring_add(it, LMS_RANK, 0);
                                        if (it_rank > player_rank && it_rank <= 256)
                                                GameRules_scoring_add(it, LMS_RANK, -1);
                        FOREACH_CLIENT(true, {
                                if (it.frags == FRAGS_PLAYER_OUT_OF_GAME)
                                {
                                        float it_rank = GameRules_scoring_add(it, LMS_RANK, 0);
                                        if (it_rank > player_rank && it_rank <= 256)
                                                GameRules_scoring_add(it, LMS_RANK, -1);
-                                       lms_lowest_lives = 0;
                                }
                                else if (it.frags != FRAGS_SPECTATOR)
                                {
                                }
                                else if (it.frags != FRAGS_SPECTATOR)
                                {