diff options
Diffstat (limited to 'src/cgame/cg_main.c')
-rw-r--r-- | src/cgame/cg_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c index 16147cd2..25935b8b 100644 --- a/src/cgame/cg_main.c +++ b/src/cgame/cg_main.c @@ -164,6 +164,7 @@ vmCvar_t cg_noPrintDuplicate; vmCvar_t cg_noVoiceChats; vmCvar_t cg_noVoiceText; vmCvar_t cg_hudFiles; +vmCvar_t cg_hudFilesEnable; vmCvar_t cg_smoothClients; vmCvar_t pmove_fixed; vmCvar_t pmove_msec; @@ -308,6 +309,7 @@ static cvarTable_t cvarTable[ ] = { &cg_disableScannerPlane, "cg_disableScannerPlane", "0", CVAR_ARCHIVE }, { &cg_tutorial, "cg_tutorial", "1", CVAR_ARCHIVE }, { &cg_hudFiles, "cg_hudFiles", "ui/hud.txt", CVAR_ARCHIVE}, + { &cg_hudFilesEnable, "cg_hudFilesEnable", "0", CVAR_ARCHIVE}, { NULL, "cg_alienConfig", "", CVAR_ARCHIVE }, { NULL, "cg_humanConfig", "", CVAR_ARCHIVE }, { NULL, "cg_spectatorConfig", "", CVAR_ARCHIVE }, @@ -1684,7 +1686,7 @@ void CG_LoadHudMenu( void ) trap_Cvar_VariableStringBuffer( "cg_hudFiles", buff, sizeof( buff ) ); hudSet = buff; - if( hudSet[ 0 ] == '\0' ) + if( !cg_hudFilesEnable.integer || hudSet[ 0 ] == '\0' ) hudSet = "ui/hud.txt"; CG_LoadMenus( hudSet ); |