mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-04 20:56:14 +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
f1048d2b5a
commit
5f0fc3f681
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…
Add table
Reference in a new issue