]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix missing Welcome dialog when a local client connects to a local dedicated server
authorterencehill <piuntn@gmail.com>
Mon, 11 Apr 2022 17:01:14 +0000 (19:01 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 11 Apr 2022 17:01:14 +0000 (19:01 +0200)
qcsrc/server/scores.qc

index 7e90b4f082e812a127011f5d10723bc6d2eeef55..950b1114e676b890346da9fdd628abafb40a9381 100644 (file)
@@ -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)