1.1 --- a/core/sm_srvcmds.cpp Sun Mar 25 22:25:45 2007 +0000
1.2 +++ b/core/sm_srvcmds.cpp Wed Mar 28 20:28:42 2007 +0000
1.3 @@ -59,6 +59,13 @@
1.4 {
1.5 META_REGCVAR(pCommand);
1.6
1.7 + /* Override values of convars created by SourceMod convar manager if specified on command line */
1.8 + const char *cmdLineValue = icvar->GetCommandLineValue(pCommand->GetName());
1.9 + if (cmdLineValue && !pCommand->IsCommand())
1.10 + {
1.11 + static_cast<ConVar *>(pCommand)->SetValue(cmdLineValue);
1.12 + }
1.13 +
1.14 return true;
1.15 }
1.16