foxygit / doom Log in
commit 73bbc8ce51d9f67246c251141950c4611c85baba
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Wed Oct 8 00:27:39 2014 -0400
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Wed Oct 8 00:27:39 2014 -0400

    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).
---
 src/d_loop.c | 18 +++++++++++++-----
 1 file 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