]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/main.qc
Merge branch 'bones_was_here/chkupd' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / main.qc
index 75fb7169e1017755cef2531825d0f9f68c5d5cca..8165f4cead3f76540654bef10b0eaf3bc713885c 100644 (file)
@@ -490,7 +490,7 @@ float CSQC_InputEvent(int bInputType, float nPrimary, float nSecondary)
 
        if (nPrimary == K_ESCAPE && !(hudShiftState & S_SHIFT) && key_pressed)
        {
-               if (cvar("_menu_gamemenu_dialog_available"))
+               if (!isdemo() && cvar("_menu_gamemenu_dialog_available"))
                {
                        localcmd("\nmenu_showgamemenudialog\n");
                        return true;
@@ -1053,7 +1053,9 @@ NET_HANDLE(ENT_CLIENT_SCORES_INFO, bool isnew)
                strcpy(teamscores_label(i), ReadString());
                teamscores_flags(i) = ReadByte();
        }
-       net_handle_ServerWelcome();
+       bool welcome_msg_too = ReadByte();
+       if (welcome_msg_too)
+               net_handle_ServerWelcome();
        return = true;
        Scoreboard_InitScores();
        Gamemode_Init();