From 90e9937b71b6d846edbd7ae245189e9aa3353039 Mon Sep 17 00:00:00 2001 From: Edward Richardson Date: Mon, 5 May 2014 22:47:48 +1200 Subject: [PATCH] Stop NetUpdate from corrupting demo playback --- src/d_net.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/d_net.cpp b/src/d_net.cpp index c912d29a2..170e9ed12 100644 --- a/src/d_net.cpp +++ b/src/d_net.cpp @@ -1052,6 +1052,12 @@ void NetUpdate (void) if (singletics) 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 // to players waiting for resends. resendOnly = (maketic / ticdup) == (maketic - i) / ticdup;