Skip to content

Commit

Permalink
more descriptive message for server CVAR change attempt in netgame
Browse files Browse the repository at this point in the history
Rationale: while the previous description contains the name of a CVAR, it doesn't specify that it's a CVAR. Unsuspecting user may be not aware that the engine or a mod contains such a CVAR.
  • Loading branch information
mmaulwurff authored and coelckers committed May 26, 2020
1 parent 5558452 commit 2a063c9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/d_netinfo.cpp
Expand Up @@ -629,7 +629,7 @@ bool D_SendServerInfoChange (FBaseCVar *cvar, UCVarValue value, ECVarType type)
{
if (netgame && !players[consoleplayer].settings_controller)
{
Printf("Only setting controllers can change %s\n", cvar->GetName());
Printf("Only setting controllers can change server CVAR %s\n", cvar->GetName());
cvar->MarkSafe();
return true;
}
Expand Down Expand Up @@ -659,7 +659,10 @@ bool D_SendServerFlagChange (FBaseCVar *cvar, int bitnum, bool set, bool silent)
{
if (netgame && !players[consoleplayer].settings_controller)
{
if (!silent) Printf("Only setting controllers can change %s\n", cvar->GetName());
if (!silent)
{
Printf("Only setting controllers can change server CVAR %s\n", cvar->GetName());
}
return true;
}

Expand Down

0 comments on commit 2a063c9

Please sign in to comment.