mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
removed a duplicate server register message. Closes #956
This commit is contained in:
parent
e5293620f4
commit
ac8c9b464e
|
@ -263,7 +263,7 @@ int CRegister::RegisterProcessPacket(CNetChunk *pPacket)
|
||||||
else if(pPacket->m_DataSize == sizeof(SERVERBROWSE_FWOK) &&
|
else if(pPacket->m_DataSize == sizeof(SERVERBROWSE_FWOK) &&
|
||||||
mem_comp(pPacket->m_pData, SERVERBROWSE_FWOK, sizeof(SERVERBROWSE_FWOK)) == 0)
|
mem_comp(pPacket->m_pData, SERVERBROWSE_FWOK, sizeof(SERVERBROWSE_FWOK)) == 0)
|
||||||
{
|
{
|
||||||
if(m_RegisterFirst)
|
if(m_RegisterFirst && m_RegisterState != REGISTERSTATE_REGISTERED)
|
||||||
m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "register", "no firewall/nat problems detected");
|
m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "register", "no firewall/nat problems detected");
|
||||||
RegisterNewState(REGISTERSTATE_REGISTERED);
|
RegisterNewState(REGISTERSTATE_REGISTERED);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue