From 160d367649d1d82eec2a4973be6a5906f2b9ab2e Mon Sep 17 00:00:00 2001 From: Night Owl Date: Wed, 12 Apr 2017 22:15:59 +0500 Subject: [PATCH] Revert unneeded changes. --- cl_dll/hud.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cl_dll/hud.cpp b/cl_dll/hud.cpp index 4381d2c1..1d4eb772 100644 --- a/cl_dll/hud.cpp +++ b/cl_dll/hud.cpp @@ -90,6 +90,18 @@ int __MsgFunc_QItems( const char *pszName, int iSize, void *pbuf ) return gHUD.MsgFunc_QItems( pszName, iSize, pbuf ); } +void __CmdFunc_OpenCommandMenu(void) +{ +} + +void __CmdFunc_CloseCommandMenu(void) +{ +} + +void __CmdFunc_ForceCloseCommandMenu( void ) +{ +} + // This is called every time the DLL is loaded void CHud::Init( void ) { @@ -104,6 +116,12 @@ void CHud::Init( void ) HOOK_MESSAGE( ServerName ); + HOOK_COMMAND( "+commandmenu", OpenCommandMenu ); + HOOK_COMMAND( "-commandmenu", CloseCommandMenu ); + HOOK_COMMAND( "ForceCloseCommandMenu", ForceCloseCommandMenu ); + + CVAR_CREATE( "hud_takesshots", "0", FCVAR_ARCHIVE ); // controls whether or not to automatically take screenshots at the end of a round + // QUAKECLASSIC HOOK_MESSAGE( QItems ); hud_textmode = CVAR_CREATE ( "hud_textmode", "0", FCVAR_ARCHIVE );