]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix infomessage regression
authorterencehill <piuntn@gmail.com>
Thu, 24 Nov 2016 15:45:38 +0000 (16:45 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 24 Nov 2016 15:45:38 +0000 (16:45 +0100)
qcsrc/server/mutators/mutator/gamemode_lms.qc

index 0d36d0161c6ad7d4accdd5e15b5a55f5aaaf04bc..d7edf0442d7ff0efcd575804ac3b1345ad884849 100644 (file)
@@ -174,7 +174,7 @@ void lms_RemovePlayer(entity player)
                                if (it.frags == FRAGS_LMS_LOSER)
                                {
                                        float it_rank = PlayerScore_Add(it, SP_LMS_RANK, 0);
-                                       if (it_rank > player_rank && it_rank < 666)
+                                       if (it_rank > player_rank && it_rank < 665)
                                                PlayerScore_Add(it, SP_LMS_RANK, -1);
                                        lms_lowest_lives = 0;
                                }
@@ -186,7 +186,7 @@ void lms_RemovePlayer(entity player)
                                }
                        });
                        PlayerScore_Add(player, SP_LMS_LIVES, -PlayerScore_Add(player, SP_LMS_LIVES, 0));
-                       PlayerScore_Add(player, SP_LMS_RANK, 666);
+                       PlayerScore_Add(player, SP_LMS_RANK, 665); // different from 666
                        player.frags = FRAGS_LMS_LOSER;
                        TRANSMUTE(Observer, player);
                }
@@ -225,7 +225,7 @@ MUTATOR_HOOKFUNCTION(lms, ClientConnect)
 
        if(PlayerScore_Add(player, SP_LMS_LIVES, LMS_NewPlayerLives()) <= 0)
        {
-               PlayerScore_Add(player, SP_LMS_RANK, 666);
+               PlayerScore_Add(player, SP_LMS_RANK, 666); // mark as forced spectator for the hud code
                player.frags = FRAGS_SPECTATOR;
        }
 }