Fixed "mat_crosshair" callback.

Not registering a new command anymore. Instead we fix mat_crosshair.
This commit is contained in:
PixieCore 2022-03-18 22:45:12 +01:00
parent 9476897018
commit 4330b8064b

View File

@ -134,7 +134,7 @@ void ConCommand::Init(void)
#ifndef DEDICATED
//-------------------------------------------------------------------------
// MATERIAL SYSTEM
ConCommand* mat_printmat_at_crosshair = new ConCommand("mat_printmat_at_crosshair", "Prints the material under the crosshair.", FCVAR_RELEASE | FCVAR_DEVELOPMENTONLY, _CMaterial_GetMaterialAtCrossHair_f_ComplectionFunc, nullptr);
g_pCVar->FindCommand("mat_crosshair")->m_pCommandCallback = _CMaterial_GetMaterialAtCrossHair_f_ComplectionFunc; // Patch completion function to working callback.
#endif // !DEDICATED
}