Skip to content

Commit 4872f09

Browse files
committed
Add missing check for using only FrameLimitGameplay, and fix erroneous floating point comparison.
1 parent 68fbbc0 commit 4872f09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/RageDisplay.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,8 @@ void RageDisplay::FrameLimitBeforeVsync( int iFPS )
955955

956956
void RageDisplay::FrameLimitAfterVsync()
957957
{
958-
if( g_fFrameLimitPercent.Get() == 0.0f && g_fFrameLimit.Get() == 0)
958+
if( g_fFrameLimitPercent.Get() == 0 && g_fFrameLimit.Get() == 0 &&
959+
g_fFrameLimitGameplay.Get() == 0)
959960
return;
960961

961962
g_LastFrameEndedAt.Touch();

0 commit comments

Comments
 (0)