]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't show the Welcome dialog in the campaign, centerprint level description works...
authorterencehill <piuntn@gmail.com>
Fri, 11 Mar 2022 00:22:14 +0000 (01:22 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 11 Mar 2022 00:22:14 +0000 (01:22 +0100)
qcsrc/menu/command/menu_cmd.qc

index 8de4bf4f033a5c178b0f402fc3db0d6cf3fa8198..2587602fc02e812e8213db42afcf7c976f4ea6aa 100644 (file)
@@ -95,6 +95,8 @@ void GameCommand(string theCommand)
                }
                else if (argc == 2 && !isdemo())     // don't allow this command in demos
                {
+                       if (argv(1) == "Welcome" && cvar("g_campaign"))
+                               return;
                        m_play_click_sound(MENU_SOUND_OPEN);
                        m_goto(strcat(filter, argv(1))); // switch to a menu item
                }