From 65b4f070df684851e8c5fdcb9d7721c8e9e23816 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 24 Sep 2008 19:12:59 +0000 Subject: Add I_InitNetwork function into d_net.c temporarily. Subversion-branch: /branches/raven-branch Subversion-revision: 1275 --- src/heretic/d_net.c | 24 ++++++++++++++++++++++-- src/heretic/doomdef.h | 8 -------- 2 files changed, 22 insertions(+), 10 deletions(-) (limited to 'src') 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 @@ -579,6 +579,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; +} + /* =================== = @@ -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); -- cgit v1.2.3