summaryrefslogtreecommitdiff
path: root/src/heretic/d_net.c
diff options
context:
space:
mode:
authorSimon Howard2013-04-05 20:24:20 +0000
committerSimon Howard2013-04-05 20:24:20 +0000
commitd3cd96a9dc73d4b261757a34bf1e3c59b48ddf19 (patch)
tree1be029f73fef618b296a80818fbdbf54aa9c2c30 /src/heretic/d_net.c
parentd71cfa9e4af661ace3f957162fa14cbdba8bd83c (diff)
downloadchocolate-doom-d3cd96a9dc73d4b261757a34bf1e3c59b48ddf19.tar.gz
chocolate-doom-d3cd96a9dc73d4b261757a34bf1e3c59b48ddf19.tar.bz2
chocolate-doom-d3cd96a9dc73d4b261757a34bf1e3c59b48ddf19.zip
Use two-stage netgame startup for Heretic.
Subversion-branch: /branches/v2-branch Subversion-revision: 2584
Diffstat (limited to 'src/heretic/d_net.c')
-rw-r--r--src/heretic/d_net.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/heretic/d_net.c b/src/heretic/d_net.c
index 54b0c14d..7218eec9 100644
--- a/src/heretic/d_net.c
+++ b/src/heretic/d_net.c
@@ -176,17 +176,9 @@ static void InitConnectData(net_connect_data_t *connect_data)
connect_data->is_freedoom = 0;
}
-//
-// D_CheckNetGame
-// Works out player numbers among the net participants
-//
-
-void D_CheckNetGame (void)
+void D_ConnectNetGame(void)
{
net_connect_data_t connect_data;
- net_gamesettings_t settings;
-
- D_RegisterLoopCallbacks(&doom_loop_interface);
InitConnectData(&connect_data);
netgame = D_InitNetGame(&connect_data);
@@ -203,6 +195,18 @@ void D_CheckNetGame (void)
{
netgame = true;
}
+}
+
+//
+// D_CheckNetGame
+// Works out player numbers among the net participants
+//
+
+void D_CheckNetGame (void)
+{
+ net_gamesettings_t settings;
+
+ D_RegisterLoopCallbacks(&doom_loop_interface);
if (netgame)
{
@@ -213,3 +217,4 @@ void D_CheckNetGame (void)
D_StartNetGame(&settings);
LoadGameSettings(&settings);
}
+