static int standalone;
static int demo_paused;
+static int show_hud;
void demo_play_goto(int s)
{
gui_pulse(id, 1.2f);
}
+ show_hud = 1;
hud_update(0);
-
game_set_fly(0.f);
return id;
static void demo_play_paint(int id, float st)
{
game_draw(0, st);
- hud_paint();
+
+ if (show_hud)
+ hud_paint();
if (time_state() < 1.f)
gui_paint(id);
demo_paused = 1;
return goto_state(&st_demo_end);
}
+
+ if (c == SDLK_F6)
+ show_hud = !show_hud;
}
return 1;
}
/*---------------------------------------------------------------------------*/
-static int nohud = 0;
+static int show_hud;
static int play_loop_enter(void)
{
hud_view_pulse(config_get_d(CONFIG_CAMERA));
- nohud = 0;
+ show_hud = 1;
hud_update(0);
{
game_draw(0, st);
- if (!nohud)
+ if (show_hud)
hud_paint();
if (time_state() < 1.f)
return goto_state(&st_look);
if (d && c == SDLK_F6)
- nohud = !nohud;
+ show_hud = !show_hud;
if (d && c == SDLK_c && config_cheat())
{