From: terencehill Date: Fri, 11 Mar 2022 00:22:14 +0000 (+0100) Subject: Don't show the Welcome dialog in the campaign, centerprint level description works... X-Git-Tag: xonotic-v0.8.5~81^2~21 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d010ac34b3088252291ce16575cbc73b026e5982;p=xonotic%2Fxonotic-data.pk3dir.git Don't show the Welcome dialog in the campaign, centerprint level description works best here --- diff --git a/qcsrc/menu/command/menu_cmd.qc b/qcsrc/menu/command/menu_cmd.qc index 8de4bf4f0..2587602fc 100644 --- a/qcsrc/menu/command/menu_cmd.qc +++ b/qcsrc/menu/command/menu_cmd.qc @@ -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 }