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
No related branches found
No related tags found
No related merge requests found
......@@ -603,10 +603,10 @@ void P_Ticker(boolean run)
if (!multiplayer) {
G_WriteDemoTiccmd(&players[consoleplayer].cmd, 0);
} else {
G_WriteDemoExtraData();
for (i = 0; i < MAXPLAYERS; i++)
if (playeringame[i])
G_WriteDemoTiccmd(&players[i].cmd, i);
G_WriteDemoExtraData();
}
}
if (demoplayback)
......@@ -615,10 +615,10 @@ void P_Ticker(boolean run)
if (!multiplayer) {
G_ReadDemoTiccmd(&players[consoleplayer].cmd, 0);
} else {
G_ReadDemoExtraData();
for (i = 0; i < MAXPLAYERS; i++)
if (playeringame[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