diff options
author | Simon Howard | 2011-10-13 01:15:33 +0000 |
---|---|---|
committer | Simon Howard | 2011-10-13 01:15:33 +0000 |
commit | 687ab6c9a481ffcec476fce2add35b7ae12eee48 (patch) | |
tree | 7caef2504005c7accdc3276152c40cab106f7c77 /src/doom/d_main.c | |
parent | 460c3748565ba1f0fee9e39fd33e76436c6ddc78 (diff) | |
download | chocolate-doom-687ab6c9a481ffcec476fce2add35b7ae12eee48.tar.gz chocolate-doom-687ab6c9a481ffcec476fce2add35b7ae12eee48.tar.bz2 chocolate-doom-687ab6c9a481ffcec476fce2add35b7ae12eee48.zip |
Split out common main loop code into separate file, d_loop.c.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2413
Diffstat (limited to 'src/doom/d_main.c')
-rw-r--r-- | src/doom/d_main.c | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/src/doom/d_main.c b/src/doom/d_main.c index 2784c26d..c2fee76a 100644 --- a/src/doom/d_main.c +++ b/src/doom/d_main.c @@ -107,9 +107,6 @@ boolean nomonsters; // checkparm of -nomonsters boolean respawnparm; // checkparm of -respawn boolean fastparm; // checkparm of -fast -boolean singletics = false; // debug flag to cancel adaptiveness - - //extern int soundVolume; //extern int sfxVolume; //extern int musicVolume; @@ -136,8 +133,6 @@ int show_endoom = 1; void D_CheckNetGame (void); -void D_ProcessEvents (void); -void G_BuildTiccmd (ticcmd_t* cmd); void D_DoAdvanceDemo (void); @@ -442,29 +437,10 @@ void D_DoomLoop (void) while (1) { // frame syncronous IO operations - I_StartFrame (); - - // process one or more tics - if (singletics) - { - static ticcmd_t cmds[MAXPLAYERS]; - - I_StartTic (); - D_ProcessEvents (); - netcmds = cmds; - G_BuildTiccmd(&cmds[consoleplayer]); - if (advancedemo) - D_DoAdvanceDemo (); - M_Ticker (); - G_Ticker (); - gametic++; - maketic++; - } - else - { - TryRunTics (); // will run at least one tic - } - + I_StartFrame (); + + TryRunTics (); // will run at least one tic + S_UpdateSounds (players[consoleplayer].mo);// move positional sounds // Update display, next frame, with current state. |