Skip to content

Commit 35a33b1

Browse files
author
Sam Feeney
committed
Screen debug overlay doesn't update unless it's actually displayed
1 parent 99fab7c commit 35a33b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ScreenDebugOverlay.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,11 @@ void ScreenDebugOverlay::Update( float fDeltaTime )
341341
PREFSMAN->m_fCenterImageAddHeight - (int)SCREEN_HEIGHT + (int)(g_fImageScaleCurrent*SCREEN_HEIGHT) );
342342
}
343343

344-
Screen::Update(fDeltaTime);
345-
346344
this->SetVisible( g_bIsDisplayed && !m_bForcedHidden );
347345
if( !g_bIsDisplayed )
348346
return;
349347

348+
Screen::Update(fDeltaTime); // Is there a particular reason this needs to be updated when not visible? - Mina
350349
UpdateText();
351350
}
352351

0 commit comments

Comments
 (0)