From 6a4dc84a1fbf22ea41372be8850d746bab2079e3 Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 20 Dec 2019 13:35:02 +0000 Subject: [PATCH] Committing this change as I'm about to dive into save/load code But I can't remember what this change did and whether it worked lol (probably an attempted bugfix for low-ping simulations breaking) #usefulcommitmessages --- src/d_clisrv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index dc44d9a9f..66f42f230 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -5664,7 +5664,7 @@ static void RunSimulations() } // simulate the rest o da future - int numToSimulate = targetSimTic - simtic; + int numToSimulate = targetSimTic - (int)simtic; for (int i = 0; i < numToSimulate; i++) { // control other players (just use their previous control for now) @@ -5713,7 +5713,7 @@ static void RunSimulations() } } - if (simtic != targetSimTic) + if ((int)simtic < targetSimTic) { rendergametic = gametic; simtic = targetSimTic;