From 4a3a576f798b55950cae83a174c5bd9e74111ea5 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 4 Jan 2022 19:29:37 +0100 Subject: [PATCH] LMS: Apply INGAME_STATUS_JOINED when players are reset --- qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc index 76a565016..c8cc0e6e5 100644 --- a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc +++ b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc @@ -163,7 +163,10 @@ bool lms_AddPlayer(entity player) int lives = GameRules_scoring_add(player, LMS_LIVES, LMS_NewPlayerLives()); if(lives <= 0) return false; - INGAME_STATUS_SET(player, INGAME_STATUS_JOINING); // this is just to delay setting health and armor that can't be done here + if (time < game_starttime) + INGAME_STATUS_SET(player, INGAME_STATUS_JOINED); + else + INGAME_STATUS_SET(player, INGAME_STATUS_JOINING); // this is just to delay setting health and armor that can't be done here } if (warmup_stage || time <= game_starttime) { -- 2.39.2