Skip to content

Commit

Permalink
- enabled CVAR descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jun 4, 2020
1 parent a81becc commit 8b91bf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/console/c_cvars.h
Expand Up @@ -171,7 +171,7 @@ class FBaseCVar

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;
Expand Down
1 change: 1 addition & 0 deletions src/common/console/c_dispatch.cpp
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit 8b91bf9

Please sign in to comment.