From 15623a8389e13247fa62dbb83c5383db647616ef Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 9 Oct 2024 14:07:53 +0200 Subject: [PATCH] avoid floats in integer math. --- src/common/startscreen/startscreen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/startscreen/startscreen.cpp b/src/common/startscreen/startscreen.cpp index 56a179526a2..ccca6d9069c 100644 --- a/src/common/startscreen/startscreen.cpp +++ b/src/common/startscreen/startscreen.cpp @@ -699,8 +699,8 @@ void FStartScreen::Render(bool force) twod->OnFrameDone(); } auto newtime = I_msTime(); - if ((newtime - nowtime) * 2.0 > minwaittime) // slow down drawing the start screen if we're on a slow GPU! - minwaittime = (newtime - nowtime) * 2.0; + if ((newtime - nowtime) * 2 > minwaittime) // slow down drawing the start screen if we're on a slow GPU! + minwaittime = (newtime - nowtime) * 2; } FImageSource* CreateStartScreenTexture(FBitmap& srcdata);