- Precache player sounds at level load.

SVN r3841 (trunk)
This commit is contained in:
Randy Heit 2012-08-22 23:46:47 +00:00
commit 0ac94c5265
4 changed files with 61 additions and 2 deletions

View file

@ -475,6 +475,18 @@ void APlayerPawn::Serialize (FArchive &arc)
}
}
//===========================================================================
//
// APlayerPawn :: MarkPrecacheSounds
//
//===========================================================================
void APlayerPawn::MarkPrecacheSounds() const
{
Super::MarkPrecacheSounds();
S_MarkPlayerSounds(GetSoundClass());
}
//===========================================================================
//
// APlayerPawn :: BeginPlay
@ -968,7 +980,7 @@ void APlayerPawn::FilterCoopRespawnInventory (APlayerPawn *oldplayer)
//
//===========================================================================
const char *APlayerPawn::GetSoundClass ()
const char *APlayerPawn::GetSoundClass() const
{
if (player != NULL &&
(player->mo == NULL || !(player->mo->flags4 &MF4_NOSKIN)) &&