From 3e4ac58f7c2818de589823f40c63da6e6c9e52cc Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 23 Mar 2012 03:49:54 +0000 Subject: [PATCH] - 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) --- src/p_saveg.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/p_saveg.cpp b/src/p_saveg.cpp index 3b7533efc..27c42b7ef 100644 --- a/src/p_saveg.cpp +++ b/src/p_saveg.cpp @@ -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) {