- Fixed: Do not "Give player back the skin" when loading a savegame if they have MF4_NOSKIN set.

SVN r3473 (trunk)
This commit is contained in:
Randy Heit 2012-03-23 03:37:55 +00:00
parent 43033df455
commit d3a2a40a3a

View file

@ -363,8 +363,8 @@ void AActor::Serialize (FArchive &arc)
{ {
if (playeringame[player - players] && if (playeringame[player - players] &&
player->cls != NULL && player->cls != NULL &&
state->sprite == !(flags4 & MF4_NOSKIN) &&
GetDefaultByType (player->cls)->SpawnState->sprite) state->sprite == GetDefaultByType (player->cls)->SpawnState->sprite)
{ // Give player back the skin { // Give player back the skin
sprite = skins[player->userinfo.skin].sprite; sprite = skins[player->userinfo.skin].sprite;
scaleX = skins[player->userinfo.skin].ScaleX; scaleX = skins[player->userinfo.skin].ScaleX;