Add FBaseCVar::GetHumanString()
- For most cvars, this is equivalent to calling GetGenericRep() to get a string. - For float cvars, it uses %g instead of %H, because %H is generally more information than is needed.
This commit is contained in:
parent
fc54dd1ff0
commit
e96ed6bf8d
5 changed files with 24 additions and 9 deletions
|
|
@ -651,8 +651,7 @@ void C_DoCommand (const char *cmd, int keynum)
|
|||
}
|
||||
else
|
||||
{ // Get the variable's value
|
||||
UCVarValue val = var->GetGenericRep (CVAR_String);
|
||||
Printf ("\"%s\" is \"%s\"\n", var->GetName(), val.String);
|
||||
Printf ("\"%s\" is \"%s\"\n", var->GetName(), var->GetHumanString());
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue