mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-31 23:00:57 +00:00
???
This commit is contained in:
parent
78adae109a
commit
08296d372d
1 changed files with 37 additions and 4 deletions
41
src/p_tick.c
41
src/p_tick.c
|
@ -722,10 +722,43 @@ void P_Ticker(boolean run)
|
||||||
G_ReadMetalTic(metalplayback);
|
G_ReadMetalTic(metalplayback);
|
||||||
if (metalrecording)
|
if (metalrecording)
|
||||||
G_WriteMetalTic(players[consoleplayer].mo);
|
G_WriteMetalTic(players[consoleplayer].mo);
|
||||||
if (demorecording)
|
|
||||||
G_WriteGhostTic(players[consoleplayer].mo);
|
if (multiplayer)
|
||||||
if (demoplayback) // Use Ghost data for consistency checks.
|
{
|
||||||
G_ConsGhostTic();
|
if (demorecording)
|
||||||
|
{
|
||||||
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
|
{
|
||||||
|
if (!playeringame[i] || players[i].spectator)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (!players[i].mo)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
G_WriteGhostTic(players[i].mo, i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (demoplayback) // Use Ghost data for consistency checks.
|
||||||
|
{
|
||||||
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
|
{
|
||||||
|
if (!playeringame[i] || players[i].spectator)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (!players[i].mo)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
G_ConsGhostTic(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (demorecording)
|
||||||
|
G_WriteGhostTic(players[consoleplayer].mo, consoleplayer);
|
||||||
|
if (demoplayback) // Use Ghost data for consistency checks.
|
||||||
|
G_ConsGhostTic(0);
|
||||||
|
}
|
||||||
if (modeattacking)
|
if (modeattacking)
|
||||||
G_GhostTicker();
|
G_GhostTicker();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue