Change HUD::show and HUD::hide to HUD::enable and HUD::disable. The global

progs variable time is now updated before the HUD drawing function is run.
This commit is contained in:
Brian Koropoff 2003-05-23 02:50:15 +00:00
parent c3d18bd53a
commit 30c4da3c76
2 changed files with 6 additions and 4 deletions

View file

@ -743,13 +743,13 @@ C_NewMap (void)
}
static void
C_GIB_HUD_Show_f (void)
C_GIB_HUD_Enable_f (void)
{
hud_view->visible = 1;
}
static void
C_GIB_HUD_Hide_f (void)
C_GIB_HUD_Disable_f (void)
{
hud_view->visible = 0;
}
@ -859,8 +859,8 @@ C_Init (void)
// register GIB builtins
GIB_Builtin_Add ("print::center", C_GIB_Print_Center_f);
GIB_Builtin_Add ("HUD::show", C_GIB_HUD_Show_f);
GIB_Builtin_Add ("HUD::hide", C_GIB_HUD_Hide_f);
GIB_Builtin_Add ("HUD::enable", C_GIB_HUD_Enable_f);
GIB_Builtin_Add ("HUD::disable", C_GIB_HUD_Disable_f);
con_initialized = true;
}

View file

@ -569,6 +569,8 @@ Menu_Draw (view_t *view)
void
Menu_Draw_Hud (view_t *view)
{
*menu_pr_state.globals.time = *menu_pr_state.time;
PR_ExecuteProgram (&menu_pr_state, menu_draw_hud);
}