summaryrefslogtreecommitdiff
path: root/src/doom/d_main.c
diff options
context:
space:
mode:
authorSimon Howard2010-09-26 01:21:02 +0000
committerSimon Howard2010-09-26 01:21:02 +0000
commit4dac08c8694f9b347b2b5c0ca12a0d26b1ae6589 (patch)
tree158ca0bba9d007a6f9fecc17481183735c76a5b9 /src/doom/d_main.c
parent63712ec1880bf0df7df6c215b01da9bafb9b6976 (diff)
downloadchocolate-doom-4dac08c8694f9b347b2b5c0ca12a0d26b1ae6589.tar.gz
chocolate-doom-4dac08c8694f9b347b2b5c0ca12a0d26b1ae6589.tar.bz2
chocolate-doom-4dac08c8694f9b347b2b5c0ca12a0d26b1ae6589.zip
Restructure player quit code to take place on the first tic after the
player quit, to avoid possible desyncs. Further refactoring to split game-specific code from generic code. Subversion-branch: /branches/raven-branch Subversion-revision: 2141
Diffstat (limited to 'src/doom/d_main.c')
-rw-r--r--src/doom/d_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/doom/d_main.c b/src/doom/d_main.c
index f3a4b037..fed6a1b4 100644
--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -457,9 +457,12 @@ void D_DoomLoop (void)
// process one or more tics
if (singletics)
{
+ static ticcmd_t cmds[MAXPLAYERS];
+
I_StartTic ();
D_ProcessEvents ();
- G_BuildTiccmd (&netcmds[consoleplayer][maketic%BACKUPTICS]);
+ netcmds = cmds;
+ G_BuildTiccmd(&cmds[consoleplayer]);
if (advancedemo)
D_DoAdvanceDemo ();
M_Ticker ();