Merge branch 'fix-autoexec-netvars' into 'next'

Fix autoexec file trying to set netvars when joining from command-line

See merge request STJr/SRB2!1040
This commit is contained in:
Lachlan Wright 2020-07-07 13:47:13 -04:00
commit b9a088b16f
1 changed files with 1 additions and 1 deletions

View File

@ -1574,7 +1574,7 @@ static void CV_SetCVar(consvar_t *var, const char *value, boolean stealth)
// send the value of the variable
UINT8 buf[128];
UINT8 *p = buf;
if (!(server || (IsPlayerAdmin(consoleplayer))))
if (!(server || (addedtogame && IsPlayerAdmin(consoleplayer))))
{
CONS_Printf(M_GetText("Only the server or admin can change: %s %s\n"), var->name, var->string);
return;