fixed some serverbrosers related stuff

This commit is contained in:
Magnus Auvinen 2007-07-23 21:21:30 +00:00
parent 027bfefffc
commit 40eaf9431b
3 changed files with 4 additions and 9 deletions

View file

@ -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");

View file

@ -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

View file

@ -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;