From 30c4da3c76d8ca1b11380061e8fabf0571e12722 Mon Sep 17 00:00:00 2001 From: Brian Koropoff Date: Fri, 23 May 2003 02:50:15 +0000 Subject: [PATCH] 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. --- libs/console/client.c | 8 ++++---- libs/console/menu.c | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/console/client.c b/libs/console/client.c index bfb71df57..b92aa810f 100644 --- a/libs/console/client.c +++ b/libs/console/client.c @@ -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; } diff --git a/libs/console/menu.c b/libs/console/menu.c index c3ecc433b..ee73653ce 100644 --- a/libs/console/menu.c +++ b/libs/console/menu.c @@ -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); }