No more switching characters in forcecharacter maps!

This commit is contained in:
toasterbabe 2017-03-19 13:48:54 +00:00
parent 8aaf3ac851
commit 1582aee909
1 changed files with 1 additions and 1 deletions

View File

@ -1011,7 +1011,7 @@ UINT8 CanChangeSkin(INT32 playernum)
return true;
// Force skin in effect.
if (client && (cv_forceskin.value != -1) && !(adminplayer == playernum && serverplayer == -1))
if (client && ((cv_forceskin.value != -1) || (mapheaderinfo[gamemap-1] && mapheaderinfo[gamemap-1]->forcecharacter[0] != '\0')) && !(adminplayer == playernum && serverplayer == -1))
return false;
// Can change skin in intermission and whatnot.