Show CVar's default value in addition to current
This commit is contained in:
parent
9fbfee3b2d
commit
da97b51c35
3 changed files with 19 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue