]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
LMS: show the NOLIVES message even to players joining the server too late
authorterencehill <piuntn@gmail.com>
Mon, 1 Jun 2020 12:58:52 +0000 (14:58 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 1 Jun 2020 12:58:52 +0000 (14:58 +0200)
qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc

index bff9722d08a766785229f3ea4744f58aaf94bc12..3a7bc1dfe8e1c9bc0f36398d8a93b0b4e6e325bc 100644 (file)
@@ -160,9 +160,7 @@ MUTATOR_HOOKFUNCTION(lms, ForbidSpawn)
 
        if(warmup_stage)
                return false;
-       if(player.frags == FRAGS_SPECTATOR)
-               return true;
-       if(GameRules_scoring_add(player, LMS_LIVES, 0) <= 0)
+       if(player.frags == FRAGS_SPECTATOR || GameRules_scoring_add(player, LMS_LIVES, 0) <= 0)
        {
                Send_Notification(NOTIF_ONE, player, MSG_CENTER, CENTER_LMS_NOLIVES);
                return true;