mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Bugfix: don't print summaries of hidden cvars
This commit is contained in:
parent
59fab7ac93
commit
f5eb2a2e08
@ -677,8 +677,9 @@ void CConsole::BuildSummary(string svConVar)
|
||||
{
|
||||
// Remove trailing space and/or semicolon before we call 'g_pCVar->FindVar(..)'.
|
||||
StringRTrim(svConVar, " ;", true);
|
||||
const ConVar* const pConVar = g_pCVar->FindVar(svConVar.c_str());
|
||||
|
||||
if (const ConVar* pConVar = g_pCVar->FindVar(svConVar.c_str()))
|
||||
if (pConVar && !pConVar->IsFlagSet(FCVAR_HIDDEN))
|
||||
{
|
||||
// Display the current and default value of ConVar if found.
|
||||
snprintf(m_szSummary, sizeof(m_szSummary), "(\"%s\", default \"%s\")", pConVar->GetString(), pConVar->GetDefault());
|
||||
|
Loading…
x
Reference in New Issue
Block a user