mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +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);
|
||||
if (metalrecording)
|
||||
G_WriteMetalTic(players[consoleplayer].mo);
|
||||
if (demorecording)
|
||||
G_WriteGhostTic(players[consoleplayer].mo);
|
||||
if (demoplayback) // Use Ghost data for consistency checks.
|
||||
G_ConsGhostTic();
|
||||
|
||||
if (multiplayer)
|
||||
{
|
||||
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)
|
||||
G_GhostTicker();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue