From: terencehill Date: Thu, 24 Nov 2016 15:45:38 +0000 (+0100) Subject: Fix infomessage regression X-Git-Tag: xonotic-v0.8.2~404^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2acb480d08d206ebefcf39704919e7c5b72c94e1;p=xonotic%2Fxonotic-data.pk3dir.git Fix infomessage regression --- diff --git a/qcsrc/server/mutators/mutator/gamemode_lms.qc b/qcsrc/server/mutators/mutator/gamemode_lms.qc index 0d36d0161..d7edf0442 100644 --- a/qcsrc/server/mutators/mutator/gamemode_lms.qc +++ b/qcsrc/server/mutators/mutator/gamemode_lms.qc @@ -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; } }