From: terencehill Date: Mon, 1 Jun 2020 12:58:52 +0000 (+0200) Subject: LMS: show the NOLIVES message even to players joining the server too late X-Git-Tag: xonotic-v0.8.5~972 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fb864e1ae6d721928f36c68cf65c7fd2f669cb09;p=xonotic%2Fxonotic-data.pk3dir.git LMS: show the NOLIVES message even to players joining the server too late --- diff --git a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc index bff9722d0..3a7bc1dfe 100644 --- a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc +++ b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc @@ -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;