Cleanup to use new ConVar utilities

This commit is contained in:
Amos
2022-01-09 17:17:05 +01:00
parent 19f5010bd2
commit 64c07af6e0
13 changed files with 49 additions and 49 deletions

View File

@@ -38,7 +38,7 @@ void __fastcall HFrameStageNotify(CHLClient* rcx, ClientFrameStage_t frameStage)
ConCommandBase* disconnect = (ConCommandBase*)g_pCvar->FindCommand("disconnect");
disconnect->AddFlags(FCVAR_SERVER_CAN_EXECUTE); // Make sure server is not restricted to this.
if (net_userandomkey->m_pParent->m_iValue == 1)
if (net_userandomkey->GetBool())
{
HNET_GenerateKey();
}