diff options
author | Simon Howard | 2008-10-03 17:50:57 +0000 |
---|---|---|
committer | Simon Howard | 2008-10-03 17:50:57 +0000 |
commit | 43552743d387a04b71c75165b624bb4ac415a05b (patch) | |
tree | d90aa5df3bcd39e77c67f7b57d21bf1fe7205939 | |
parent | 5839f530016d2e5004bb60b146d22fd8be84ef99 (diff) | |
download | chocolate-doom-43552743d387a04b71c75165b624bb4ac415a05b.tar.gz chocolate-doom-43552743d387a04b71c75165b624bb4ac415a05b.tar.bz2 chocolate-doom-43552743d387a04b71c75165b624bb4ac415a05b.zip |
Disable calls into low-level netgame code, until netgames are fixed.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1332
-rw-r--r-- | src/hexen/d_net.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/hexen/d_net.c b/src/hexen/d_net.c index 226e8b07..fec03c8d 100644 --- a/src/hexen/d_net.c +++ b/src/hexen/d_net.c @@ -175,7 +175,9 @@ void HSendPacket(int node, int flags) fprintf(debugfile, "\n"); } +#ifdef I_NET I_NetCmd(); +#endif } //========================================================================== @@ -209,7 +211,9 @@ void NET_SendFrags(player_t * player) doomcom->remotenode = frags; doomcom->datalength = NetbufferSize(); +#ifdef I_NET I_NetCmd(); +#endif } /* @@ -238,7 +242,9 @@ boolean HGetPacket(void) return false; doomcom->command = CMD_GET; +#ifdef I_NET I_NetCmd(); +#endif if (doomcom->remotenode == -1) return false; @@ -702,6 +708,24 @@ void D_ArbitrateNetStart(void) } } +// Dummy version of I_InitNetwork; netgames are currently broken. + +void I_InitNetwork(void) +{ + // + // single player game + // + doomcom = malloc(sizeof(*doomcom)); + memset(doomcom, 0, sizeof(*doomcom)); + netgame = false; + doomcom->id = DOOMCOM_ID; + doomcom->numplayers = doomcom->numnodes = 1; + doomcom->deathmatch = false; + doomcom->consoleplayer = 0; + doomcom->ticdup = 1; + doomcom->extratics = 0; +} + /* =================== = |