set timeinmap for demo rewind

idk maybe this helps with that feature desynching all the time lol
This commit is contained in:
Alug committed 2024-10-05 05:41:30 +02:00
1 parent 4ed7a63806
commit 3f68006e3c
1 file changed
+2
+2
View File
@@ -429,6 +429,8 @@ void P_Ticker(boolean run)
if (demo.rewinding && leveltime > 0)
{
leveltime = (leveltime-1) & ~3;
if (timeinmap > 0)
timeinmap = (timeinmap-1) & ~3;
G_PreviewRewind(leveltime);
}
else if (demo.freecam && democam.cam) // special case: allow freecam to MOVE during pause!