summaryrefslogtreecommitdiff
path: root/src/network/network.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-07 19:06:36 +0000
committerrubidium <rubidium@openttd.org>2009-04-07 19:06:36 +0000
commit82f8badc074d24b4df618c16b23c3854c3369711 (patch)
tree0ef655d1bf99df921f95015642ba96de2eae500e /src/network/network.cpp
parentfdddfd6269ec4f5c770c288f05927ab8b0a60142 (diff)
downloadopenttd-82f8badc074d24b4df618c16b23c3854c3369711.tar.xz
(svn r15969) -Codechange: make the list of broadcast addresses virtually unlimited.
Diffstat (limited to 'src/network/network.cpp')
-rw-r--r--src/network/network.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index 0e241f1a6..60c163c37 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -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 */