mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
???
This commit is contained in:
parent
0bbff7f6d4
commit
73639b6504
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…
Add table
Reference in a new issue