From 9c16a77c3ea9bc850eaf31a4732ac20f77954643 Mon Sep 17 00:00:00 2001 From: Michal Zima Date: Wed, 9 Jun 2010 19:48:59 +0200 Subject: Consolidated IPv4 and IPv6 ports to one shared When running GS on [::], only IPv6 server will be started --- src/base/net_multiplayer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/base/net_multiplayer.c') diff --git a/src/base/net_multiplayer.c b/src/base/net_multiplayer.c index fc142da..9888f03 100644 --- a/src/base/net_multiplayer.c +++ b/src/base/net_multiplayer.c @@ -29,11 +29,11 @@ int net_multiplayer_get_game_type() return netGameType; } -int net_multiplayer_init_for_game_server(char *ip4, int port4, char *ip6, int port6) +int net_multiplayer_init_for_game_server(char *ip4, char *ip6, int port) { int ret; - ret = server_init(ip4, port4, ip6, port6); + ret = server_init(ip4, ip6, port); if (ret > 0) { netGameType = NET_GAME_TYPE_SERVER; @@ -53,7 +53,7 @@ int net_multiplayer_init(int type, char *ip, int port, int proto) case NET_GAME_TYPE_SERVER: switch (proto) { case PROTO_UDPv4: - if (server_init(ip, port, NULL, 0) != 1) { + if (server_init(ip, NULL, port) != 1) { error("Unable to initialize multiplayer game"); netGameType = NET_GAME_TYPE_NONE; return -1; @@ -61,7 +61,7 @@ int net_multiplayer_init(int type, char *ip, int port, int proto) break; case PROTO_UDPv6: - if (server_init(NULL, 0, ip, port) != 1) { + if (server_init(NULL, ip, port) != 1) { error("Unable to initialize multiplayer game"); netGameType = NET_GAME_TYPE_NONE; return -1; -- cgit v1.2.3