- enabled CVAR descriptions.

This commit is contained in:
Christoph Oelckers 2020-06-04 08:04:51 +02:00
parent a81becccb0
commit 8b91bf9b61
2 changed files with 2 additions and 1 deletions

View file

@ -171,7 +171,7 @@ public:
static void ListVars (const char *filter, bool plain);
const char *GetDescription() const { return Description; };
const FString &GetDescription() const { return Description; };
protected:
virtual void DoSet (UCVarValue value, ECVarType type) = 0;

View file

@ -300,6 +300,7 @@ void C_DoCommand (const char *cmd, int keynum)
}
else
{ // Get the variable's value
if (var->GetDescription().Len()) Printf("%s\n", var->GetDescription().GetChars());
Printf ("\"%s\" is \"%s\"\n", var->GetName(), var->GetHumanString());
}
}