Stop NetUpdate from corrupting demo playback

This commit is contained in:
Edward Richardson 2014-05-05 22:47:48 +12:00
parent 93aa1ea2c4
commit 90e9937b71

View file

@ -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;