mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Revert "Implement ISDDNET. Deprecates #1320"
This reverts commit 1929bc6739
.
This commit is contained in:
parent
a7857d58c4
commit
62846821da
|
@ -1566,10 +1566,7 @@ void CServer::SendServerInfo(const NETADDR *pAddr, int Token, int Type, bool Sen
|
|||
p.AddString(GameServer()->GameType(), 16);
|
||||
|
||||
// flags
|
||||
int Flags = SERVER_FLAG_ISDDNET;
|
||||
if(g_Config.m_Password[0])
|
||||
Flags |= SERVER_FLAG_PASSWORD;
|
||||
ADD_INT(p, Flags);
|
||||
ADD_INT(p, g_Config.m_Password[0] ? SERVER_FLAG_PASSWORD : 0);
|
||||
|
||||
int MaxClients = m_NetServer.MaxClients();
|
||||
if(Type == SERVERINFO_VANILLA || Type == SERVERINFO_INGAME)
|
||||
|
|
|
@ -79,7 +79,6 @@ enum
|
|||
{
|
||||
SERVER_TICK_SPEED=50,
|
||||
SERVER_FLAG_PASSWORD = 0x1,
|
||||
SERVER_FLAG_ISDDNET = 0x2,
|
||||
|
||||
MAX_CLIENTS=64,
|
||||
VANILLA_MAX_CLIENTS=16,
|
||||
|
|
|
@ -60,8 +60,7 @@ bool IsBlockWorlds(const CServerInfo *pInfo)
|
|||
|
||||
bool IsDDNet(const CServerInfo *pInfo)
|
||||
{
|
||||
return (pInfo->m_Flags & SERVER_FLAG_ISDDNET
|
||||
|| str_find_nocase(pInfo->m_aGameType, "ddracenet")
|
||||
return (str_find_nocase(pInfo->m_aGameType, "ddracenet")
|
||||
|| str_find_nocase(pInfo->m_aGameType, "ddnet"))
|
||||
&& !IsBlockInfectionZ(pInfo);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue