]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Display the welcome message as centerprint message in demos since menu dialogs can...
authorterencehill <piuntn@gmail.com>
Sat, 12 Mar 2022 14:28:41 +0000 (15:28 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 12 Mar 2022 14:28:41 +0000 (15:28 +0100)
qcsrc/client/main.qc

index 42330a36d6102edcfdd737df5d24099bc79c1abf..468878f83e10c6a6e562e633f9f2ea7f582fd309 100644 (file)
@@ -1290,7 +1290,7 @@ NET_HANDLE(TE_CSQC_SERVERINFO, bool isNew)
 {
        string hostname = ReadString();
        string msg = ReadString();
-       if (cvar("_menu_welcome_dialog_available") && autocvar_cl_welcome_in_menu_dialog)
+       if (!isdemo() && cvar("_menu_welcome_dialog_available") && autocvar_cl_welcome_in_menu_dialog)
        {
                string welcomedialog_args;
                welcomedialog_args = strcat("name \"", hostname, "\"");