Skip to content
Snippets Groups Projects
Commit f7e12165 authored by fickleheart's avatar fickleheart
Browse files

Write extra data before cmds

This will probably nip a possible issue
with player cmds getting read/wrote inconsistently
if a player joins or leaves.
parent 49caebd2
Branches fix-nocurl
No related tags found
No related merge requests found
...@@ -603,10 +603,10 @@ void P_Ticker(boolean run) ...@@ -603,10 +603,10 @@ void P_Ticker(boolean run)
if (!multiplayer) { if (!multiplayer) {
G_WriteDemoTiccmd(&players[consoleplayer].cmd, 0); G_WriteDemoTiccmd(&players[consoleplayer].cmd, 0);
} else { } else {
G_WriteDemoExtraData();
for (i = 0; i < MAXPLAYERS; i++) for (i = 0; i < MAXPLAYERS; i++)
if (playeringame[i]) if (playeringame[i])
G_WriteDemoTiccmd(&players[i].cmd, i); G_WriteDemoTiccmd(&players[i].cmd, i);
G_WriteDemoExtraData();
} }
} }
if (demoplayback) if (demoplayback)
...@@ -615,10 +615,10 @@ void P_Ticker(boolean run) ...@@ -615,10 +615,10 @@ void P_Ticker(boolean run)
if (!multiplayer) { if (!multiplayer) {
G_ReadDemoTiccmd(&players[consoleplayer].cmd, 0); G_ReadDemoTiccmd(&players[consoleplayer].cmd, 0);
} else { } else {
G_ReadDemoExtraData();
for (i = 0; i < MAXPLAYERS; i++) for (i = 0; i < MAXPLAYERS; i++)
if (playeringame[i]) if (playeringame[i])
G_ReadDemoTiccmd(&players[i].cmd, i); G_ReadDemoTiccmd(&players[i].cmd, i);
G_ReadDemoExtraData();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment