shithub: choc

Download patch

ref: 3a5b1ac17c195142993bee0f2bc1a3ba6fef6152
parent: 523df27f9a7eac1f21ddddb743f21b98a4667c81
author: Simon Howard <[email protected]>
date: Thu Feb 23 15:22:57 EST 2006

Do not allow tics to buffer up in single player (stops the gun instantly
appearing on level start)

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

--- a/src/d_net.c
+++ b/src/d_net.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: d_net.c 379 2006-02-23 19:12:43Z fraggle $
+// $Id: d_net.c 381 2006-02-23 20:22:57Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -22,6 +22,10 @@
 // 02111-1307, USA.
 //
 // $Log$
+// Revision 1.20  2006/02/23 20:22:57  fraggle
+// Do not allow tics to buffer up in single player (stops the gun instantly
+// appearing on level start)
+//
 // Revision 1.19  2006/02/23 19:12:43  fraggle
 // Set maketic-gametic lag back to 1 second.
 //
@@ -107,7 +111,7 @@
 //-----------------------------------------------------------------------------
 
 
-static const char rcsid[] = "$Id: d_net.c 379 2006-02-23 19:12:43Z fraggle $";
+static const char rcsid[] = "$Id: d_net.c 381 2006-02-23 20:22:57Z fraggle $";
 
 
 #include "d_main.h"
@@ -198,6 +202,12 @@
     {
         ticcmd_t cmd;
         
+        // If playing single player, do not allow tics to buffer
+        // up very far
+
+        if ((!netgame || demoplayback) && maketic - gameticdiv > 2)
+            break;
+
         // Never go more than a second ahead
 
         if (maketic - gameticdiv > 35)