mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-26 06:20:16 -04:00
bring implementation of -timedemo in line with Chocolate Doom (#362)
This commit is contained in:
parent
1f2c476af1
commit
03b0409584
@ -754,7 +754,17 @@ void TryRunTics (void)
|
|||||||
realtics = entertic - oldentertics;
|
realtics = entertic - oldentertics;
|
||||||
oldentertics = entertic;
|
oldentertics = entertic;
|
||||||
|
|
||||||
NetUpdate ();
|
// in singletics mode, run a single tic every time this function
|
||||||
|
// is called.
|
||||||
|
|
||||||
|
if (singletics)
|
||||||
|
{
|
||||||
|
BuildNewTic();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
NetUpdate ();
|
||||||
|
}
|
||||||
|
|
||||||
lowtic = GetLowTic();
|
lowtic = GetLowTic();
|
||||||
|
|
||||||
|
@ -1856,10 +1856,6 @@ void D_DoomMain(void)
|
|||||||
{
|
{
|
||||||
int p, slot;
|
int p, slot;
|
||||||
|
|
||||||
ticcmd_t emptycmd;
|
|
||||||
|
|
||||||
netcmds = &emptycmd;
|
|
||||||
|
|
||||||
setbuf(stdout,NULL);
|
setbuf(stdout,NULL);
|
||||||
|
|
||||||
dsdh_InitTables();
|
dsdh_InitTables();
|
||||||
@ -2355,21 +2351,7 @@ void D_DoomMain(void)
|
|||||||
// frame syncronous IO operations
|
// frame syncronous IO operations
|
||||||
I_StartFrame ();
|
I_StartFrame ();
|
||||||
|
|
||||||
// process one or more tics
|
TryRunTics (); // will run at least one tic
|
||||||
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
|
// killough 3/16/98: change consoleplayer to displayplayer
|
||||||
S_UpdateSounds(players[displayplayer].mo);// move positional sounds
|
S_UpdateSounds(players[displayplayer].mo);// move positional sounds
|
||||||
|
Loading…
x
Reference in New Issue
Block a user