mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-12 19:18:20 +00:00
don't send the DDRace flags until i change them to their final look
This commit is contained in:
parent
984d10970e
commit
e32b52b57a
|
@ -977,6 +977,9 @@ void CServer::SendServerInfo(NETADDR *pAddr, int Token)
|
||||||
i |= SERVER_FLAG_VERSION;
|
i |= SERVER_FLAG_VERSION;
|
||||||
if(g_Config.m_Password[0]) // password set
|
if(g_Config.m_Password[0]) // password set
|
||||||
i |= SERVER_FLAG_PASSWORD;
|
i |= SERVER_FLAG_PASSWORD;
|
||||||
|
/* i commented this because these are going to change and i need them to be sent correctly in all server versions,
|
||||||
|
* there is not point of publishing different version of those
|
||||||
|
* until my Internet is back and i can clarify this wih heinrich5991 it will not be sent
|
||||||
if(g_Config.m_SvTeam >= 0)
|
if(g_Config.m_SvTeam >= 0)
|
||||||
i |= SERVER_FLAG_TEAMS;
|
i |= SERVER_FLAG_TEAMS;
|
||||||
if(g_Config.m_SvTeamStrict)
|
if(g_Config.m_SvTeamStrict)
|
||||||
|
@ -1005,9 +1008,9 @@ void CServer::SendServerInfo(NETADDR *pAddr, int Token)
|
||||||
i |= SERVER_FLAG_MAPTEST;
|
i |= SERVER_FLAG_MAPTEST;
|
||||||
if(g_Config.m_SvServerTest)
|
if(g_Config.m_SvServerTest)
|
||||||
i |= SERVER_FLAG_SERVERTEST;
|
i |= SERVER_FLAG_SERVERTEST;
|
||||||
|
*/
|
||||||
str_format(aBuf, sizeof(aBuf), "%d", i);
|
str_format(aBuf, sizeof(aBuf), "%d", i);
|
||||||
p.AddString(aBuf, 11);
|
p.AddString(aBuf, 2);// i don't know why the limit was 11 while there were 16 flags
|
||||||
|
|
||||||
// progression
|
// progression
|
||||||
str_format(aBuf, sizeof(aBuf), "%d", m_BrowseinfoProgression);
|
str_format(aBuf, sizeof(aBuf), "%d", m_BrowseinfoProgression);
|
||||||
|
|
Loading…
Reference in a new issue