summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/heretic/d_net.c24
-rw-r--r--src/heretic/doomdef.h8
2 files changed, 22 insertions, 10 deletions
diff --git a/src/heretic/d_net.c b/src/heretic/d_net.c
index 264f0fb1..4a67ad19 100644
--- a/src/heretic/d_net.c
+++ b/src/heretic/d_net.c
@@ -580,6 +580,28 @@ void D_ArbitrateNetStart(void)
}
/*
+====================
+=
+= I_InitNetwork
+=
+====================
+*/
+
+static void I_InitNetwork(void)
+{
+ doomcom = malloc(sizeof(*doomcom));
+ memset(doomcom, 0, sizeof(*doomcom));
+ netgame = false;
+ doomcom->id = DOOMCOM_ID;
+ doomcom->numplayers = 1;
+ doomcom->numnodes = 1;
+ doomcom->deathmatch = false;
+ doomcom->consoleplayer = 0;
+ doomcom->ticdup = 1;
+ doomcom->extratics = 0;
+}
+
+/*
===================
=
= D_CheckNetGame
@@ -603,9 +625,7 @@ void D_CheckNetGame(void)
}
// I_InitNetwork sets doomcom and netgame
-#ifdef I_NET
I_InitNetwork();
-#endif
if (doomcom->id != DOOMCOM_ID)
I_Error("Doomcom buffer invalid!");
netbuffer = &doomcom->data;
diff --git a/src/heretic/doomdef.h b/src/heretic/doomdef.h
index 51633d98..63ad37f7 100644
--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -682,14 +682,6 @@ byte *I_ZoneBase(int *size);
// asyncronous interrupt functions should maintain private ques that are
// read by the syncronous functions to be converted into events
-void I_Init(void);
-// called by D_DoomMain
-// determines the hardware configuration and sets up the video mode
-
-void I_InitNetwork(void);
-void I_NetCmd(void);
-
-void I_Update(void);
// Copy buffer to video
byte *I_AllocLow(int length);