From cccb8e449e15be74c9df1e7034563952fc9fec80 Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 11 Apr 2022 19:01:14 +0200 Subject: [PATCH] Fix missing Welcome dialog when a local client connects to a local dedicated server --- qcsrc/server/scores.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/scores.qc b/qcsrc/server/scores.qc index 7e90b4f08..950b1114e 100644 --- a/qcsrc/server/scores.qc +++ b/qcsrc/server/scores.qc @@ -210,7 +210,8 @@ bool ScoreInfo_SendEntity(entity this, entity to, int sf) } // prevent sending the welcome message again when score types are sent again because the scoring system has changed // it can happen in some game modes like Race when the qualyfing session ends and the race starts - bool welcome_msg_too = (time < CS(this).jointime + 5); + // NOTE: CS(this) is not initialized yet when a local client connects to a local dedicated server + bool welcome_msg_too = (!CS(this) || time < CS(this).jointime + 5); WriteByte(MSG_ENTITY, welcome_msg_too); // welcome message is sent here because it needs to know the gametype if (welcome_msg_too) -- 2.39.2