From 27dc590931a485678adc9a88f14806e5d919cda2 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. --- source/common/startscreen/startscreen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/common/startscreen/startscreen.cpp b/source/common/startscreen/startscreen.cpp index 56afb59b46..65d279bec0 100644 --- a/source/common/startscreen/startscreen.cpp +++ b/source/common/startscreen/startscreen.cpp @@ -692,8 +692,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);