mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
Stop NetUpdate from corrupting demo playback
This commit is contained in:
parent
93aa1ea2c4
commit
90e9937b71
1 changed files with 6 additions and 0 deletions
|
@ -1052,6 +1052,12 @@ void NetUpdate (void)
|
||||||
if (singletics)
|
if (singletics)
|
||||||
return; // singletic update is synchronous
|
return; // singletic update is synchronous
|
||||||
|
|
||||||
|
if (demoplayback)
|
||||||
|
{
|
||||||
|
nettics[0] = (maketic / ticdup);
|
||||||
|
return; // Don't touch netcmd data while playing a demo, as it'll already exist.
|
||||||
|
}
|
||||||
|
|
||||||
// If maketic didn't cross a ticdup boundary, only send packets
|
// If maketic didn't cross a ticdup boundary, only send packets
|
||||||
// to players waiting for resends.
|
// to players waiting for resends.
|
||||||
resendOnly = (maketic / ticdup) == (maketic - i) / ticdup;
|
resendOnly = (maketic / ticdup) == (maketic - i) / ticdup;
|
||||||
|
|
Loading…
Reference in a new issue