summaryrefslogtreecommitdiff
path: root/src/base/net_multiplayer.c
diff options
context:
space:
mode:
authorMichal Zima <xhire@mujmalysvet.cz>2010-06-09 19:48:59 +0200
committerMichal Zima <xhire@mujmalysvet.cz>2010-06-09 19:48:59 +0200
commit9c16a77c3ea9bc850eaf31a4732ac20f77954643 (patch)
tree218fc846a8a025ff48b31d42f33629af05f7674f /src/base/net_multiplayer.c
parent37dd8c8b480cb7752df464051e7d1ce350f59d49 (diff)
Consolidated IPv4 and IPv6 ports to one shared
When running GS on [::], only IPv6 server will be started
Diffstat (limited to 'src/base/net_multiplayer.c')
-rw-r--r--src/base/net_multiplayer.c8
1 files changed, 4 insertions, 4 deletions
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;