more descriptive message for server CVAR change attempt in netgame

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.
This commit is contained in:
Alexander Kromm 2020-05-27 00:02:34 +07:00 committed by Christoph Oelckers
parent 555845222d
commit 2a063c96da

View file

@ -629,7 +629,7 @@ bool D_SendServerInfoChange (FBaseCVar *cvar, UCVarValue value, ECVarType type)
{ {
if (netgame && !players[consoleplayer].settings_controller) 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(); cvar->MarkSafe();
return true; return true;
} }
@ -659,7 +659,10 @@ bool D_SendServerFlagChange (FBaseCVar *cvar, int bitnum, bool set, bool silent)
{ {
if (netgame && !players[consoleplayer].settings_controller) 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; return true;
} }