From: terencehill Date: Sat, 12 Mar 2022 14:28:41 +0000 (+0100) Subject: Display the welcome message as centerprint message in demos since menu dialogs can... X-Git-Tag: xonotic-v0.8.5~81^2~18 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=89eb6eee22caa8a69a1f9853abf082311d4991c2;p=xonotic%2Fxonotic-data.pk3dir.git Display the welcome message as centerprint message in demos since menu dialogs can't be displayed --- diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index 42330a36d..468878f83 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -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, "\"");