diff --git a/saco/cmdprocs.cpp b/saco/cmdprocs.cpp index 5eab166..bc217bc 100644 --- a/saco/cmdprocs.cpp +++ b/saco/cmdprocs.cpp @@ -6,6 +6,7 @@ extern CCmdWindow *pCmdWindow; extern CDeathWindow *pDeathWindow; extern CNetGame *pNetGame; extern GAME_SETTINGS tSettings; +extern CConfig *pConfig; extern bool bShowDebugLabels; extern bool bHudScaleFix; @@ -73,16 +74,17 @@ void cmdHudScaleFix(PCHAR szCmd) if(bHudScaleFix) { bHudScaleFix = false; - // uncomment after finishing CConfig class - //CConfig::SetIntVariable(pConfig, "nohudscalefix", 1, 0); + pConfig->SetIntVariable("nohudscalefix", 1); } else { - bHudScaleFix = 1; - //CConfig::SetIntVariable(pConfig, "nohudscalefix", 0, 0); + bHudScaleFix = true; + pConfig->SetIntVariable("nohudscalefix", 0); } } +//---------------------------------------------------- + void cmdMem(PCHAR szCmd) { pChatWindow->AddDebugMessage("Memory: %u",*(DWORD *)0x8A5A80);