shithub: choc

Download patch

ref: b88a8cdb769e79df9636bbb8b0d8678ddc994d9f
parent: 94ed513e58e869818ef8c088fa2c07c71f97ced4
author: Simon Howard <fraggle@soulsphere.org>
date: Fri Nov 9 19:58:19 EST 2018

net: Use -newsync by default again.

Now that the synchronization code has been improved, re-enable it
by default, remove the -newsync parameter and add back -oldsync
instead for users who want to opt out.

This fixes #358 and #489.

--- a/src/d_loop.c
+++ b/src/d_loop.c
@@ -346,21 +346,10 @@
     //!
     // @category net
     //
-    // Use new network client sync code rather than the classic
-    // sync code. This is currently disabled by default because it
-    // has some bugs.
+    // Use original network client sync code rather than the improved
+    // sync code.
     //
-    if (M_CheckParm("-newsync") > 0)
-        settings->new_sync = 1;
-    else
-        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;
+    settings->new_sync = !M_ParmExists("-oldsync");
 
     //!
     // @category net