mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -2321,7 +2321,11 @@ void gamerender(void)
|
|||||||
int mode_indicator_alpha = graphics.lerp(
|
int mode_indicator_alpha = graphics.lerp(
|
||||||
game.old_mode_indicator_timer, game.mode_indicator_timer
|
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
|
if (graphics.fademode == FADE_NONE
|
||||||
&& !game.intimetrial
|
&& !game.intimetrial
|
||||||
|
|||||||
Reference in New Issue
Block a user