summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2008-09-24 20:16:41 +0000
committerSimon Howard2008-09-24 20:16:41 +0000
commitfacc2f70b1bfac51ddaefb78fcbef04a8d5c8e2b (patch)
treef43f9067872236dacb4f90c60cff8b6286943e08
parentacf1f779d12fa2e7ac87a77f063cc8b084d5b7ee (diff)
downloadchocolate-doom-facc2f70b1bfac51ddaefb78fcbef04a8d5c8e2b.tar.gz
chocolate-doom-facc2f70b1bfac51ddaefb78fcbef04a8d5c8e2b.tar.bz2
chocolate-doom-facc2f70b1bfac51ddaefb78fcbef04a8d5c8e2b.zip
Add #ifdefs necessary to disable multiplayer.
Subversion-branch: /branches/raven-branch Subversion-revision: 1280
-rw-r--r--src/doom/d_main.c2
-rw-r--r--src/doom/d_net.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/doom/d_main.c b/src/doom/d_main.c
index 408d968a..a6f85f07 100644
--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -346,7 +346,9 @@ void D_BindVariables(void)
I_BindVariables();
M_BindBaseControls();
+#ifdef FEATURE_MULTIPLAYER
NET_BindVariables();
+#endif
M_BindVariable("mouse_sensitivity", &mouseSensitivity);
M_BindVariable("sfx_volume", &sfxVolume);
diff --git a/src/doom/d_net.c b/src/doom/d_net.c
index 8f75fd06..e43ac4b2 100644
--- a/src/doom/d_net.c
+++ b/src/doom/d_net.c
@@ -433,6 +433,7 @@ static int GetLowTic(void)
int i;
int lowtic;
+#ifdef FEATURE_MULTIPLAYER
if (net_client_connected)
{
lowtic = INT_MAX;
@@ -447,6 +448,7 @@ static int GetLowTic(void)
}
}
else
+#endif
{
lowtic = maketic;
}