avoid floats in integer math.

This commit is contained in:
Christoph Oelckers 2024-10-09 14:07:53 +02:00
parent 1dedb4319a
commit 27dc590931

View file

@ -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);