]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/main.qc
Remove legacy MOTD centreprint (retaining support for old servers)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / main.qc
index ea7e1dda83b0f5cae2a5341a5ba50315cc71187b..0a643da4aaabd37eef38d5bf7fc32fbeeb805cf3 100644 (file)
@@ -1394,7 +1394,6 @@ bool net_handle_ServerWelcome()
                return true;
        }
 
-       welcome_msg_force_centerprint = ReadByte();
        strcpy(hostname, ReadString());
 
        string hostversion = ReadString();
@@ -1435,7 +1434,7 @@ void Welcome_Message_Show_Try()
        if (!welcome_msg_menu_check_maxtime)
                return;
 
-       bool want_dialog = (!welcome_msg_force_centerprint && !isdemo() && autocvar_cl_welcome_in_menu_dialog);
+       bool want_dialog = !isdemo();
        // if want dialog check if menu is initialized but for a short time
        if (!want_dialog || cvar("_menu_initialized") == 2 || time > welcome_msg_menu_check_maxtime)
        {
@@ -1448,8 +1447,6 @@ void Welcome_Message_Show_Try()
                        if (intermission) // close it after it's been initialized so it can still be opened manually
                                localcmd("\ntogglemenu 0\n");
                }
-               else
-                       centerprint_Add(ORDINAL(CPID_MOTD), strcat(hostname, "\n\n\n", welcome_msg), 15, 0);
 
                strfree(welcome_msg);
                welcome_msg_menu_check_maxtime = 0;