- determine smoothRatio immediately after a potential change to ototalclock has occurred.

This commit is contained in:
Mitchell Richters 2020-07-31 13:47:32 +10:00 committed by Christoph Oelckers
parent 52d9fd4cda
commit 0aca26e197

View file

@ -310,7 +310,6 @@ bool GameTicker()
C_RunDelayedCommands();
char gameUpdate = false;
gameupdatetime.Reset();
gameupdatetime.Clock();
@ -343,8 +342,8 @@ bool GameTicker()
{
ototalclock = totalclock - 1;
}
int const smoothRatio = calc_smoothratio(totalclock, ototalclock);
gameUpdate = true;
gameupdatetime.Unclock();
if (ps[myconnectindex].gm & (MODE_EOL | MODE_RESTART))
@ -357,8 +356,6 @@ bool GameTicker()
GetInput();
}
int const smoothRatio = calc_smoothratio(totalclock, ototalclock);
drawtime.Reset();
drawtime.Clock();
displayrooms(screenpeek, smoothRatio);