summaryrefslogtreecommitdiff
path: root/src/hexen/h2_main.c
diff options
context:
space:
mode:
authorSimon Howard2013-04-05 21:01:45 +0000
committerSimon Howard2013-04-05 21:01:45 +0000
commitf1bde3d5212cab46aa9f40bec29e8a72013f8a41 (patch)
tree4921b10ec05ead1846327d643700623165aca1e5 /src/hexen/h2_main.c
parentd3cd96a9dc73d4b261757a34bf1e3c59b48ddf19 (diff)
downloadchocolate-doom-f1bde3d5212cab46aa9f40bec29e8a72013f8a41.tar.gz
chocolate-doom-f1bde3d5212cab46aa9f40bec29e8a72013f8a41.tar.bz2
chocolate-doom-f1bde3d5212cab46aa9f40bec29e8a72013f8a41.zip
Use two-stage startup for Hexen, and add netgame startup callback for
the spinal loading screen. Subversion-branch: /branches/v2-branch Subversion-revision: 2585
Diffstat (limited to 'src/hexen/h2_main.c')
-rw-r--r--src/hexen/h2_main.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/hexen/h2_main.c b/src/hexen/h2_main.c
index 3d9ae87d..7b7a8168 100644
--- a/src/hexen/h2_main.c
+++ b/src/hexen/h2_main.c
@@ -76,6 +76,7 @@ typedef struct
// EXTERNAL FUNCTION PROTOTYPES --------------------------------------------
void R_ExecuteSetViewSize(void);
+void D_ConnectNetGame(void);
void D_CheckNetGame(void);
boolean F_Responder(event_t * ev);
void I_StartupKeyboard(void);
@@ -331,11 +332,6 @@ void D_DoomMain(void)
ST_Message("MN_Init: Init menu system.\n");
MN_Init();
-#ifdef FEATURE_MULTIPLAYER
- ST_Message("NET_Init: Init networking subsystem.\n");
- NET_Init();
-#endif
-
ST_Message("CT_Init: Init chat mode data.\n");
CT_Init();
@@ -351,6 +347,12 @@ void D_DoomMain(void)
I_InitTimer();
I_InitJoystick();
+#ifdef FEATURE_MULTIPLAYER
+ ST_Message("NET_Init: Init networking subsystem.\n");
+ NET_Init();
+#endif
+ D_ConnectNetGame();
+
S_Init();
S_Start();
@@ -372,17 +374,14 @@ void D_DoomMain(void)
// MAPINFO.TXT script must be already processed.
WarpCheck();
- ST_Done();
-
- // Netgame start must be here, after the splash screen has finished.
ST_Message("D_CheckNetGame: Checking network game status.\n");
D_CheckNetGame();
- // SB_Init has been moved here; the status bar must be initialized
- // *after* the netgame has started.
ST_Message("SB_Init: Loading patches.\n");
SB_Init();
+ ST_Done();
+
if (autostart)
{
ST_Message("Warp to Map %d (\"%s\":%d), Skill %d\n",