mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
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:
parent
555845222d
commit
2a063c96da
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue