(svn r15969) -Codechange: make the list of broadcast addresses virtually unlimited.

This commit is contained in:
rubidium
2009-04-07 19:06:36 +00:00
parent fdddfd6269
commit 82f8badc07
7 changed files with 38 additions and 57 deletions

View File

@@ -61,7 +61,7 @@ uint32 _frame_counter_server; // The frame_counter of the server, if in network-
uint32 _frame_counter_max; // To where we may go with our clients
uint32 _frame_counter;
uint32 _last_sync_frame; // Used in the server to store the last time a sync packet was sent to clients.
NetworkAddress _broadcast_list[MAX_INTERFACES + 1];
NetworkAddressList _broadcast_list;
uint32 _sync_seed_1, _sync_seed_2;
uint32 _sync_frame;
bool _network_first_time;
@@ -1073,7 +1073,7 @@ void NetworkStartUp()
NetworkUDPInitialize();
NetworkInitialize();
DEBUG(net, 3, "[core] network online, multiplayer available");
NetworkFindBroadcastIPs(_broadcast_list, MAX_INTERFACES);
NetworkFindBroadcastIPs(&_broadcast_list);
}
/** This shuts the network down */