diff options
author | Simon Howard | 2007-05-16 13:49:04 +0000 |
---|---|---|
committer | Simon Howard | 2007-05-16 13:49:04 +0000 |
commit | 07a5c09bb0163a1714912e7480ba6c6e8836a613 (patch) | |
tree | 2cff33280f26ffc6af49cd492f472737165c93bf /src/d_net.c | |
parent | 8e024a47e049234fc0502ad723dc165388f6e795 (diff) | |
download | chocolate-doom-07a5c09bb0163a1714912e7480ba6c6e8836a613.tar.gz chocolate-doom-07a5c09bb0163a1714912e7480ba6c6e8836a613.tar.bz2 chocolate-doom-07a5c09bb0163a1714912e7480ba6c6e8836a613.zip |
Rejig net_cl_new_sync and drone to be in d_net.c instead of
net_client.c. Fix FEATURE_MULTIPLAYER conditional compile. Move some
function definitions in d_net.c into headers. Reorganise the Makefile to
split out files into sections based on features.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 875
Diffstat (limited to 'src/d_net.c')
-rw-r--r-- | src/d_net.c | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/src/d_net.c b/src/d_net.c index 559bd448..a46c4c51 100644 --- a/src/d_net.c +++ b/src/d_net.c @@ -67,17 +67,31 @@ int nettics[MAXPLAYERS]; int maketic; +// Used for original sync code. + int lastnettic; -int skiptics; -int ticdup; +int skiptics = 0; + +// Reduce the bandwidth needed by sampling game input less and transmitting +// less. If ticdup is 2, sample half normal, 3 = one third normal, etc. + +int ticdup; + +// Send this many extra (backup) tics in each packet. + int extratics; + +// Amount to offset the timer for game sync. + fixed_t offsetms; +// Use new client syncronisation code + +boolean net_cl_new_sync = true; + +// Connected but not participating in the game (observer) -void D_ProcessEvents (void); -void G_BuildTiccmd (ticcmd_t *cmd); -void D_DoAdvanceDemo (void); - +boolean drone = false; // 35 fps clock adjusted by offsetms milliseconds |