diff options
author | Simon Howard | 2008-09-24 19:12:59 +0000 |
---|---|---|
committer | Simon Howard | 2008-09-24 19:12:59 +0000 |
commit | 65b4f070df684851e8c5fdcb9d7721c8e9e23816 (patch) | |
tree | 7e5ca1669d3b19f871591f6fdddc745315634726 | |
parent | c04e3c8be21e3819e2c75f2b6154728c4dd0a72b (diff) | |
download | chocolate-doom-65b4f070df684851e8c5fdcb9d7721c8e9e23816.tar.gz chocolate-doom-65b4f070df684851e8c5fdcb9d7721c8e9e23816.tar.bz2 chocolate-doom-65b4f070df684851e8c5fdcb9d7721c8e9e23816.zip |
Add I_InitNetwork function into d_net.c temporarily.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1275
-rw-r--r-- | src/heretic/d_net.c | 24 | ||||
-rw-r--r-- | src/heretic/doomdef.h | 8 |
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); |