From 4ee75c89468f9ae11ac4b2644d235bf8ee89b6de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Sat, 8 Jul 2023 12:00:49 +0200 Subject: [PATCH] Mark `NETMSGTYPE_CL_STARTINFO` as `MSGFLAG_FLUSH` This makes the client connect to the server faster. It's especially noticeable on servers with a low ping. Closes #6811. --- src/game/client/gameclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 2068b4f88..114895685 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -2151,7 +2151,7 @@ void CGameClient::SendInfo(bool Start) Msg.m_ColorFeet = g_Config.m_ClPlayerColorFeet; CMsgPacker Packer(&Msg); Msg.Pack(&Packer); - Client()->SendMsg(IClient::CONN_MAIN, &Packer, MSGFLAG_VITAL); + Client()->SendMsg(IClient::CONN_MAIN, &Packer, MSGFLAG_VITAL | MSGFLAG_FLUSH); m_aCheckInfo[0] = -1; } else