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:
parent
5e28567009
commit
a1c7291bc4
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue