diff options
author | Simon Howard | 2006-02-23 20:22:57 +0000 |
---|---|---|
committer | Simon Howard | 2006-02-23 20:22:57 +0000 |
commit | 3a5b1ac17c195142993bee0f2bc1a3ba6fef6152 (patch) | |
tree | 6417fd59f4a7cca146387ff1613b6fb45ca26088 /src | |
parent | 523df27f9a7eac1f21ddddb743f21b98a4667c81 (diff) | |
download | chocolate-doom-3a5b1ac17c195142993bee0f2bc1a3ba6fef6152.tar.gz chocolate-doom-3a5b1ac17c195142993bee0f2bc1a3ba6fef6152.tar.bz2 chocolate-doom-3a5b1ac17c195142993bee0f2bc1a3ba6fef6152.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/d_net.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/d_net.c b/src/d_net.c index 4ad87cf6..77f4886a 100644 --- 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 @@ void NetUpdate (void) { 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) |