shithub: choc

Download patch

ref: 73bbc8ce51d9f67246c251141950c4611c85baba
parent: 9e9bb23d201c68a63690f96ba0c73110f4d999f4
author: Simon Howard <fraggle@gmail.com>
date: Tue Oct 7 20:27:39 EDT 2014

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).

--- a/src/d_loop.c
+++ b/src/d_loop.c
@@ -349,13 +349,21 @@
     //!
     // @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