Check if in a game

This commit is contained in:
Lactozilla 2023-09-12 19:32:15 -03:00
parent 69df136e2b
commit ebca345a44

View file

@ -4709,12 +4709,14 @@ static void ForceSkin_OnChange(void)
if (cv_forceskin.value < 0) if (cv_forceskin.value < 0)
{ {
CONS_Printf("The server has lifted the forced skin restrictions.\n"); CONS_Printf("The server has lifted the forced skin restrictions.\n");
D_SendPlayerConfig(); if (Playing())
D_SendPlayerConfig();
} }
else else
{ {
CONS_Printf("The server is restricting all players to skin \"%s\".\n",skins[cv_forceskin.value].name); CONS_Printf("The server is restricting all players to skin \"%s\".\n",skins[cv_forceskin.value].name);
ForceAllSkins(cv_forceskin.value); if (Playing())
ForceAllSkins(cv_forceskin.value);
} }
} }