cfg: update primary config with actual cvars and descriptions

This commit is contained in:
jeefo 2023-07-19 13:30:55 +03:00
commit 5d6efef494
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
3 changed files with 30 additions and 16 deletions

View file

@ -76,7 +76,7 @@ void BotConfig::loadMainConfig (bool isFirstLoad) {
if (needsToIgnoreVar (ignore, key) && !strings.matches (value, cvar->string)) {
// preserve quota number if it's zero
if (strings.matches (cvar->name, "yb_quota") && cv_quota.int_ () <= 0) {
if (cv_quota.name () == cvar->name && cv_quota.int_ () <= 0) {
engfuncs.pfnCvar_DirectSet (cvar, value);
continue;
}