shithub: choc

Download patch

ref: d0e68cd18f5a0fb1a821e11df1d489bf3e87b7f3
parent: 98ac9c8dc04382280751d4e4b014106752bc0980
author: Simon Howard <fraggle@gmail.com>
date: Tue Mar 7 14:02:08 EST 2006

If running with -timedemo, do not generate new ticcmds through
NetUpdate.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 414

--- a/src/d_net.c
+++ b/src/d_net.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: d_net.c 405 2006-03-02 00:57:25Z fraggle $
+// $Id: d_net.c 414 2006-03-07 19:02:08Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -117,7 +117,7 @@
 //-----------------------------------------------------------------------------
 
 
-static const char rcsid[] = "$Id: d_net.c 405 2006-03-02 00:57:25Z fraggle $";
+static const char rcsid[] = "$Id: d_net.c 414 2006-03-07 19:02:08Z fraggle $";
 
 
 #include "d_main.h"
@@ -189,8 +189,14 @@
     int             newtics;
     int				i;
     int				gameticdiv;
+
+    // If we are running with singletics (timing a demo), this
+    // is all done separately.
+
+    if (singletics)
+        return;
     
-    // Temporary hack - hook new client/server code into Doom
+    // Run network subsystems
 
     NET_CL_Run();
     NET_SV_Run();