mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-18 07:02:03 +00:00
- Precache $ambient sounds.
SVN r3844 (trunk)
This commit is contained in:
parent
cc4aadbfaf
commit
04f09d9b57
1 changed files with 17 additions and 0 deletions
|
@ -2072,6 +2072,7 @@ class AAmbientSound : public AActor
|
|||
public:
|
||||
void Serialize (FArchive &arc);
|
||||
|
||||
void MarkPrecacheSounds () const;
|
||||
void BeginPlay ();
|
||||
void Tick ();
|
||||
void Activate (AActor *activator);
|
||||
|
@ -2098,6 +2099,22 @@ void AAmbientSound::Serialize (FArchive &arc)
|
|||
arc << bActive << NextCheck;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// AmbientSound :: MarkPrecacheSounds
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
void AAmbientSound::MarkPrecacheSounds() const
|
||||
{
|
||||
Super::MarkPrecacheSounds();
|
||||
FAmbientSound *ambient = Ambients.CheckKey(args[0]);
|
||||
if (ambient != NULL)
|
||||
{
|
||||
ambient->sound.MarkUsed();
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// AmbientSound :: Tick
|
||||
|
|
Loading…
Reference in a new issue