don't send the DDRace flags until i change them to their final look

This commit is contained in:
GreYFoXGTi 2011-02-01 00:45:25 +02:00
parent 984d10970e
commit e32b52b57a

View file

@ -977,6 +977,9 @@ void CServer::SendServerInfo(NETADDR *pAddr, int Token)
i |= SERVER_FLAG_VERSION;
if(g_Config.m_Password[0]) // password set
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)
i |= SERVER_FLAG_TEAMS;
if(g_Config.m_SvTeamStrict)
@ -1005,9 +1008,9 @@ void CServer::SendServerInfo(NETADDR *pAddr, int Token)
i |= SERVER_FLAG_MAPTEST;
if(g_Config.m_SvServerTest)
i |= SERVER_FLAG_SERVERTEST;
*/
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
str_format(aBuf, sizeof(aBuf), "%d", m_BrowseinfoProgression);