mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed some serverbrosers related stuff
This commit is contained in:
parent
027bfefffc
commit
40eaf9431b
|
@ -183,13 +183,10 @@ void client_serverbrowse_init()
|
||||||
servers.num = 0;
|
servers.num = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void client_serverbrowse_use_lan(int use)
|
void client_serverbrowse_refresh(int lan)
|
||||||
{
|
{
|
||||||
serverlist_lan = use;
|
serverlist_lan = lan;
|
||||||
}
|
|
||||||
|
|
||||||
void client_serverbrowse_refresh()
|
|
||||||
{
|
|
||||||
if(serverlist_lan)
|
if(serverlist_lan)
|
||||||
{
|
{
|
||||||
dbg_msg("client", "broadcasting for servers");
|
dbg_msg("client", "broadcasting for servers");
|
||||||
|
|
|
@ -768,8 +768,7 @@ struct server_info
|
||||||
|
|
||||||
void client_connect(const char *address);
|
void client_connect(const char *address);
|
||||||
|
|
||||||
void client_serverbrowse_refresh();
|
void client_serverbrowse_refresh(int lan);
|
||||||
int client_serverbrowse_getlist(server_info **servers);
|
int client_serverbrowse_getlist(server_info **servers);
|
||||||
void client_serverbrowse_use_lan(int use);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -473,7 +473,6 @@ public:
|
||||||
|
|
||||||
void send_fwcheckresponse(NETADDR4 *addr)
|
void send_fwcheckresponse(NETADDR4 *addr)
|
||||||
{
|
{
|
||||||
dbg_msg("server", "sending heartbeat");
|
|
||||||
NETPACKET packet;
|
NETPACKET packet;
|
||||||
packet.client_id = -1;
|
packet.client_id = -1;
|
||||||
packet.address = *addr;
|
packet.address = *addr;
|
||||||
|
|
Loading…
Reference in a new issue