From 08296d372daff746afa21e16e2e9d02383645977 Mon Sep 17 00:00:00 2001 From: fickleheart Date: Sat, 16 Feb 2019 13:10:58 -0600 Subject: [PATCH] ??? --- src/p_tick.c | 41 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/src/p_tick.c b/src/p_tick.c index 8b99c5aa..7e048af5 100644 --- a/src/p_tick.c +++ b/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();