mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
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:
parent
c3d18bd53a
commit
30c4da3c76
2 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue