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:
Randy Heit 2016-04-23 22:30:08 -05:00
commit e96ed6bf8d
5 changed files with 24 additions and 9 deletions

View file

@ -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