]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/main.qc
Add cvar cl_welcome to control if Welcome dialog appears automatically
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / main.qc
index cfadaf1b21a691bfe70394cc7c0fb3f7a88e422b..a9e9a3d0562fb970ae4c25117689a68ab383c769 100644 (file)
@@ -1443,7 +1443,8 @@ void Welcome_Message_Show_Try()
                        string msg = MakeConsoleSafe(strreplace("\n", "\\n", welcome_msg));
                        welcomedialog_args = strcat(welcomedialog_args, " WELCOME \"", msg, "\"");
                        localcmd("\nmenu_cmd directmenu Welcome ", welcomedialog_args, "\n");
-                       if (intermission || isdemo()) // close it after it's been initialized so it can still be opened manually
+                       if (intermission || isdemo() || !autocvar_cl_welcome)
+                               // close it after it's been initialized so it can still be opened manually
                                localcmd("\ntogglemenu 0\n");
                }