mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-01 00:22:03 +00:00
avoid floats in integer math.
This commit is contained in:
parent
1dedb4319a
commit
27dc590931
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue