summaryrefslogtreecommitdiff
path: root/src/net_defs.h
diff options
context:
space:
mode:
authorSimon Howard2006-02-27 16:31:08 +0000
committerSimon Howard2006-02-27 16:31:08 +0000
commit41cdd5785305a28912fa2d6231ec8f518a850ec9 (patch)
tree9ca4f5813e76280935167adea4d8ffa82b4d4402 /src/net_defs.h
parenta747cf67119b5934147093aea150043403ffb4d2 (diff)
downloadchocolate-doom-41cdd5785305a28912fa2d6231ec8f518a850ec9.tar.gz
chocolate-doom-41cdd5785305a28912fa2d6231ec8f518a850ec9.tar.bz2
chocolate-doom-41cdd5785305a28912fa2d6231ec8f518a850ec9.zip
Working client sync: adjust the clock to try to match the latency of other
players. Allow the menu ticker to run even if the main game ticker doesn't run. Remove time request/response code (now using game latency). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 394
Diffstat (limited to 'src/net_defs.h')
-rw-r--r--src/net_defs.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/net_defs.h b/src/net_defs.h
index ee6c790d..8854317c 100644
--- a/src/net_defs.h
+++ b/src/net_defs.h
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: net_defs.h 376 2006-02-23 18:19:05Z fraggle $
+// $Id: net_defs.h 394 2006-02-27 16:31:08Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -165,8 +165,6 @@ typedef enum
NET_PACKET_TYPE_DISCONNECT,
NET_PACKET_TYPE_DISCONNECT_ACK,
NET_PACKET_TYPE_RELIABLE_ACK,
- NET_PACKET_TYPE_TIME_REQ,
- NET_PACKET_TYPE_TIME_RESP,
NET_PACKET_TYPE_GAMEDATA_RESEND,
} net_packet_type_t;
@@ -199,6 +197,7 @@ typedef struct
typedef struct
{
+ signed int latency;
unsigned int seq;
boolean playeringame[MAXPLAYERS];
net_ticdiff_t cmds[MAXPLAYERS];