ref: 43552743d387a04b71c75165b624bb4ac415a05b
parent: 5839f530016d2e5004bb60b146d22fd8be84ef99
author: Simon Howard <[email protected]>
date: Fri Oct 3 13:50:57 EDT 2008
Disable calls into low-level netgame code, until netgames are fixed. Subversion-branch: /branches/raven-branch Subversion-revision: 1332
--- a/src/hexen/d_net.c
+++ b/src/hexen/d_net.c
@@ -175,7 +175,9 @@
fprintf(debugfile, "\n");
}
+#ifdef I_NET
I_NetCmd();
+#endif
}
//==========================================================================
@@ -209,7 +211,9 @@
doomcom->remotenode = frags;
doomcom->datalength = NetbufferSize();
+#ifdef I_NET
I_NetCmd();
+#endif
}
/*
@@ -238,7 +242,9 @@
return false;
doomcom->command = CMD_GET;
+#ifdef I_NET
I_NetCmd();
+#endif
if (doomcom->remotenode == -1)
return false;
@@ -700,6 +706,24 @@
}
while (i < doomcom->numnodes);
}
+}
+
+// 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;
}
/*