Show CVar's default value in addition to current

This commit is contained in:
Nikolay Ambartsumov 2020-10-03 06:26:55 +03:00 committed by Christoph Oelckers
commit da97b51c35
3 changed files with 19 additions and 2 deletions

View file

@ -302,7 +302,8 @@ void C_DoCommand (const char *cmd, int keynum)
else
{ // Get the variable's value
if (var->GetDescription().Len()) Printf("%s\n", GStrings.localize(var->GetDescription()));
Printf ("\"%s\" is \"%s\"\n", var->GetName(), var->GetHumanString());
Printf ("\"%s\" is \"%s\" ", var->GetName(), var->GetHumanString());
Printf ("(default: \"%s\")\n", var->GetHumanStringDefault());
}
}
else
@ -1149,4 +1150,3 @@ CCMD (pullin)
Printf (TEXTCOLOR_BOLD "Pullin" TEXTCOLOR_NORMAL " is only valid from .cfg\n"
"files and only when used at startup.\n");
}