bring implementation of -timedemo in line with Chocolate Doom (#362)

This commit is contained in:
Roman Fomin 2021-11-29 02:24:01 +07:00 committed by GitHub
parent 1f2c476af1
commit 03b0409584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 20 deletions

View File

@ -754,7 +754,17 @@ void TryRunTics (void)
realtics = entertic - oldentertics;
oldentertics = entertic;
// in singletics mode, run a single tic every time this function
// is called.
if (singletics)
{
BuildNewTic();
}
else
{
NetUpdate ();
}
lowtic = GetLowTic();

View File

@ -1856,10 +1856,6 @@ void D_DoomMain(void)
{
int p, slot;
ticcmd_t emptycmd;
netcmds = &emptycmd;
setbuf(stdout,NULL);
dsdh_InitTables();
@ -2355,20 +2351,6 @@ void D_DoomMain(void)
// frame syncronous IO operations
I_StartFrame ();
// process one or more tics
if (singletics)
{
I_StartTic ();
D_ProcessEvents ();
G_BuildTiccmd (netcmds);
if (advancedemo)
D_DoAdvanceDemo ();
M_Ticker ();
G_Ticker ();
gametic++;
maketic++;
}
else
TryRunTics (); // will run at least one tic
// killough 3/16/98: change consoleplayer to displayplayer