requesting serverinfo now uses gie2 instead of the legacy gief.

This commit is contained in:
m!nus 2010-12-26 02:37:22 +01:00 committed by oy
parent 2992d9a6c6
commit 7b46d386dd

View file

@ -530,7 +530,7 @@ void CServerBrowser::Refresh(int Type)
void CServerBrowser::RequestImpl(const NETADDR &Addr, CServerEntry *pEntry) const void CServerBrowser::RequestImpl(const NETADDR &Addr, CServerEntry *pEntry) const
{ {
//unsigned char buffer[sizeof(SERVERBROWSE_GETINFO)+1]; unsigned char Buffer[sizeof(SERVERBROWSE_GETINFO)+1];
CNetChunk Packet; CNetChunk Packet;
if(g_Config.m_Debug) if(g_Config.m_Debug)
@ -542,19 +542,15 @@ void CServerBrowser::RequestImpl(const NETADDR &Addr, CServerEntry *pEntry) cons
m_pConsole->Print(IConsole::OUTPUT_LEVEL_DEBUG, "client_srvbrowse", aBuf); m_pConsole->Print(IConsole::OUTPUT_LEVEL_DEBUG, "client_srvbrowse", aBuf);
} }
/*mem_copy(buffer, SERVERBROWSE_GETINFO, sizeof(SERVERBROWSE_GETINFO)); mem_copy(Buffer, SERVERBROWSE_GETINFO, sizeof(SERVERBROWSE_GETINFO));
buffer[sizeof(SERVERBROWSE_GETINFO)] = current_token;*/ Buffer[sizeof(SERVERBROWSE_GETINFO)] = m_CurrentToken;
Packet.m_ClientID = -1; Packet.m_ClientID = -1;
Packet.m_Address = Addr; Packet.m_Address = Addr;
Packet.m_Flags = NETSENDFLAG_CONNLESS; Packet.m_Flags = NETSENDFLAG_CONNLESS;
/*p.data_size = sizeof(buffer); Packet.m_DataSize = sizeof(Buffer);
p.data = buffer; Packet.m_pData = Buffer;
netclient_send(net, &p);*/
// send old request style aswell
Packet.m_DataSize = sizeof(SERVERBROWSE_OLD_GETINFO);
Packet.m_pData = SERVERBROWSE_OLD_GETINFO;
m_pNetClient->Send(&Packet); m_pNetClient->Send(&Packet);
if(pEntry) if(pEntry)