summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2008-09-24 19:12:59 +0000
committerSimon Howard2008-09-24 19:12:59 +0000
commit65b4f070df684851e8c5fdcb9d7721c8e9e23816 (patch)
tree7e5ca1669d3b19f871591f6fdddc745315634726 /src
parentc04e3c8be21e3819e2c75f2b6154728c4dd0a72b (diff)
downloadchocolate-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
Diffstat (limited to 'src')
-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);