- Added actors' BounceSound, WallBounceSound, and CrushPainSound to preloading.

- Moved marking of actor sounds for precaching into a virtual Actor function.

SVN r3838 (trunk)
This commit is contained in:
Randy Heit 2012-08-22 23:17:49 +00:00
commit 625482aaeb
4 changed files with 29 additions and 16 deletions

View file

@ -3993,6 +3993,19 @@ void AActor::PostBeginPlay ()
PrevAngle = angle;
}
void AActor::MarkPrecacheSounds() const
{
SeeSound.MarkUsed();
AttackSound.MarkUsed();
PainSound.MarkUsed();
DeathSound.MarkUsed();
ActiveSound.MarkUsed();
UseSound.MarkUsed();
BounceSound.MarkUsed();
WallBounceSound.MarkUsed();
CrushPainSound.MarkUsed();
}
bool AActor::isFast()
{
if (flags5&MF5_ALWAYSFAST) return true;