From ee9fc04c9ada1a1cf6edcae6dbc72679666f89a2 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Wed, 23 Jan 2013 19:36:52 +0000 Subject: [PATCH] game.c: replace one missed instance of inline code with calc_smoothratio(). git-svn-id: https://svn.eduke32.com/eduke32@3428 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index f420a5a5d..9741258d1 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -3546,7 +3546,7 @@ void G_DrawRooms(int32_t snum, int32_t smoothratio) if (ud.pause_on || g_player[snum].ps->on_crane > -1) smoothratio = 65536; else - smoothratio = clamp((totalclock-ototalclock)*(65536/4), 0, 65536); + smoothratio = calc_smoothratio(totalclock, ototalclock); g_visibility = (int32_t)(p->visibility * (numplayers > 1 ? 1.f : r_ambientlightrecip));