From 09eef5f6b1efa269bb6e9ed198505767ca81ce4e Mon Sep 17 00:00:00 2001 From: fickleheart Date: Fri, 1 Feb 2019 07:50:42 -0600 Subject: [PATCH] Make the join sync hack a little more robust --- src/g_game.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/g_game.c b/src/g_game.c index 9125a131..992a38d2 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -4628,7 +4628,10 @@ void G_ReadDemoExtraData(void) playeringame[p] = true; G_AddPlayer(p); players[p].spectator = true; - P_RandomByte(); // I'm pretty sure this ISN'T right, but it syncs my one test replay. + + // There's likely an off-by-one error in timing recording or playback of joins. This hacks around it so I don't have to find out where that is. \o/ + if (oldcmd[p].forwardmove) + P_RandomByte(); } else {