- change calc_smoothratio() inline function from int to double that was missed in 0c12436092.

This commit is contained in:
Mitchell Richters 2020-08-03 11:57:39 +10:00
parent 034d6e129a
commit 11a10c1d87

View file

@ -169,7 +169,7 @@ inline bool playrunning()
return (paused == 0 || (paused == 1 && (ud.recstat == 2 || ud.multimode > 1)));
}
inline int calc_smoothratio(ClockTicks totalclk, ClockTicks ototalclk)
inline double calc_smoothratio(ClockTicks totalclk, ClockTicks ototalclk)
{
double smoothratio = CalcSmoothRatio(totalclk, ototalclk, REALGAMETICSPERSEC);
return (playrunning() ? smoothratio : MaxSmoothRatio);