Don't draw mode indicator text if there is none

This makes it so that the boolean to draw mode indicator text is false
if there aren't any modes active.

Otherwise, when loading in, the in-game timer would only come in after a
few seconds instead of appearing when the fade-in finishes.
This commit is contained in:
Misa 2024-01-10 00:23:40 -08:00
parent 5e28567009
commit a1c7291bc4
1 changed files with 5 additions and 1 deletions

View File

@ -2321,7 +2321,11 @@ void gamerender(void)
int mode_indicator_alpha = graphics.lerp(
game.old_mode_indicator_timer, game.mode_indicator_timer
);
bool draw_mode_indicator_text = mode_indicator_alpha > 100;
bool any_mode_active = map.invincibility
|| GlitchrunnerMode_get() != GlitchrunnerNone
|| graphics.flipmode
|| game.slowdown < 30;
bool draw_mode_indicator_text = mode_indicator_alpha > 100 && any_mode_active;
if (graphics.fademode == FADE_NONE
&& !game.intimetrial