summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2014-10-08 00:27:39 -0400
committerSimon Howard2014-10-08 00:27:39 -0400
commit73bbc8ce51d9f67246c251141950c4611c85baba (patch)
tree658fbdc79785a43b6d22d8a0d41b7c4bf56e9ed0
parent9e9bb23d201c68a63690f96ba0c73110f4d999f4 (diff)
downloadchocolate-doom-73bbc8ce51d9f67246c251141950c4611c85baba.tar.gz
chocolate-doom-73bbc8ce51d9f67246c251141950c4611c85baba.tar.bz2
chocolate-doom-73bbc8ce51d9f67246c251141950c4611c85baba.zip
Use old network sync code by default.
The new netgame client sync code has the potential to be much better than the original sync code. However, it currently has a buggy controller and needs revisiting and overhauling (#358). For the time being, switch back to the old sync code by default and allow the new code to be enabled using the -newsync parameter (replacing the -oldsync parameter).
-rw-r--r--src/d_loop.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/d_loop.c b/src/d_loop.c
index c0463fc7..7d034485 100644
--- a/src/d_loop.c
+++ b/src/d_loop.c
@@ -349,13 +349,21 @@ void D_StartNetGame(net_gamesettings_t *settings,
//!
// @category net
//
- // Use original game sync code.
+ // Use new network client sync code rather than the classic
+ // sync code. This is currently disabled by default because it
+ // has some bugs.
//
-
- if (M_CheckParm("-oldsync") > 0)
- settings->new_sync = 0;
+ if (M_CheckParm("-newsync") > 0)
+ settings->new_sync = 1;
else
- settings->new_sync = 1;
+ settings->new_sync = 0;
+
+ // TODO: New sync code is not enabled by default because it's
+ // currently broken.
+ //if (M_CheckParm("-oldsync") > 0)
+ // settings->new_sync = 0;
+ //else
+ // settings->new_sync = 1;
//!
// @category net