- Fixed: CopyPlayer must recheck the skin, since the value stored in the savegame is only used

for bots. Mainly, what this means is that if the player is using the "Base" skin, they will
  get their class-appropriate skin instead of skin 0 if this save is loaded before any other
  game has started.

SVN r3474 (trunk)
This commit is contained in:
Randy Heit 2012-03-23 03:49:54 +00:00
parent d3a2a40a3a
commit 3e4ac58f7c

View file

@ -281,6 +281,9 @@ static void CopyPlayer (player_t *dst, player_t *src, const char *name)
{
dst->userinfo = uibackup;
}
// Validate the skin
dst->userinfo.skin = R_FindSkin(skins[dst->userinfo.skin].name, dst->CurrentPlayerClass);
// Make sure the player pawn points to the proper player struct.
if (dst->mo != NULL)
{