mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-29 05:41:02 +00:00
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.
This commit is contained in:
parent
49caebd2db
commit
f7e12165ba
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue