From f19a6a2a29d5fabb96434920dc2acfff0e9c4b84 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 14 Apr 2012 03:10:07 +0000 Subject: [PATCH] - Fixed: Do not play skinned sounds when the player has the NOSKIN flag set. SVN r3561 (trunk) --- src/p_user.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/p_user.cpp b/src/p_user.cpp index 797017d48..db98c7a90 100644 --- a/src/p_user.cpp +++ b/src/p_user.cpp @@ -960,6 +960,7 @@ void APlayerPawn::FilterCoopRespawnInventory (APlayerPawn *oldplayer) const char *APlayerPawn::GetSoundClass () { if (player != NULL && + (player->mo == NULL || !(player->mo->flags4 &MF4_NOSKIN)) && (unsigned int)player->userinfo.skin >= PlayerClasses.Size () && (size_t)player->userinfo.skin < numskins) {