- Fixed: Do not play skinned sounds when the player has the NOSKIN flag set.

SVN r3561 (trunk)
This commit is contained in:
Randy Heit 2012-04-14 03:10:07 +00:00
parent c0bc7532ac
commit f19a6a2a29

View file

@ -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)
{