- Plugged more leaks in SBARINFO.

- Spawned actors that have MF2_DORMANT set in their default instance now have
  Deactivate() called on them immediately after spawning.


SVN r707 (trunk)
This commit is contained in:
Randy Heit 2008-01-16 04:43:50 +00:00
commit 25e0f0644a
6 changed files with 164 additions and 95 deletions

View file

@ -3316,6 +3316,13 @@ void AActor::HandleSpawnFlags ()
void AActor::BeginPlay ()
{
// If the actor is spawned with the dormant flag set, clear it, and use
// the normal deactivation logic to make it properly dormant.
if (flags2 & MF2_DORMANT)
{
flags2 &= ~MF2_DORMANT;
Deactivate (NULL);
}
}
bool AActor::isFast()