From 11a10c1d87bb913b176560b6288b0a75108a881b Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 3 Aug 2020 11:57:39 +1000 Subject: [PATCH] - change `calc_smoothratio()` inline function from int to double that was missed in 0c12436092f9f0ef5a379a37bd8691b0f7e64f7b. --- source/games/duke/src/inlines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/inlines.h b/source/games/duke/src/inlines.h index b6a0a9c01..0bf00a644 100644 --- a/source/games/duke/src/inlines.h +++ b/source/games/duke/src/inlines.h @@ -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);