summaryrefslogtreecommitdiff
path: root/src/d_net.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/d_net.c')
-rw-r--r--src/d_net.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/src/d_net.c b/src/d_net.c
index 98e8a2f6..406cf39e 100644
--- a/src/d_net.c
+++ b/src/d_net.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: d_net.c 403 2006-03-02 00:03:48Z fraggle $
+// $Id: d_net.c 405 2006-03-02 00:57:25Z 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 403 2006-03-02 00:03:48Z fraggle $";
+static const char rcsid[] = "$Id: d_net.c 405 2006-03-02 00:57:25Z fraggle $";
#include "d_main.h"
@@ -187,8 +187,7 @@ void NetUpdate (void)
{
int nowtime;
int newtics;
- int i,j;
- int realstart;
+ int i;
int gameticdiv;
// Temporary hack - hook new client/server code into Doom
@@ -344,8 +343,6 @@ void D_CheckNetGame (void)
//
void D_QuitNetGame (void)
{
- int i, j;
-
if (debugfile)
fclose (debugfile);
@@ -391,15 +388,11 @@ void TryRunTics (void)
int i;
int lowtic;
int entertic;
- static int oldentertics;
- int realtics;
int availabletics;
int counts;
// get real tics
entertic = I_GetTime ()/ticdup;
- realtics = entertic - oldentertics;
- oldentertics = entertic;
// get available tics
NetUpdate ();
@@ -409,23 +402,12 @@ void TryRunTics (void)
availabletics = lowtic - gametic/ticdup;
// decide how many tics to run
- if (realtics < availabletics-1)
- counts = realtics+1;
- else if (realtics < availabletics)
- counts = realtics;
- else
- counts = availabletics;
counts = availabletics;
if (counts < 1)
counts = 1;
- if (debugfile)
- fprintf (debugfile,
- "=======real: %i avail: %i game: %i\n",
- realtics, availabletics,counts);
-
// wait for new tics if needed
while (lowtic < gametic/ticdup + counts)
{