Skip to content

Commit

Permalink
Theoretically fixed the always-autofading logic bug.
Browse files Browse the repository at this point in the history
I say theoretically because I am on my living room couch with my
feet up, typing on my Mac laptop.
  • Loading branch information
ceejbot committed Nov 29, 2023
1 parent c637209 commit b472bac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/renderer/ui_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -724,9 +724,11 @@ namespace ui
if (gDoingBriefPeek)
{
if (gHudAlpha < 1.0f) { return; }
else { gDoingBriefPeek = false; }
gDoingBriefPeek = false;
startAlphaTransition(false, 0.0f);
return;
}

// The auto-fade case here.
if ((gHudAlpha > 0.0f && !gIsFading) || (gIsFading && doFadeIn)) { startAlphaTransition(false, 0.0f); }
}
else if (helpers::hudShouldAutoFadeIn())
Expand Down

0 comments on commit b472bac

Please sign in to comment.