mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fixed "mat_crosshair" callback.
Not registering a new command anymore. Instead we fix mat_crosshair.
This commit is contained in:
parent
9476897018
commit
4330b8064b
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user