1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 09:39:43 +01:00

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

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