- moved the FRenderer::StateChanged call from AActor::StaticSpawn to AActor::PostBeginPlay.

- ensured that all classes reach AActor's PostBeginPlay method. Some were missing a Super call.


SVN r3404 (trunk)
This commit is contained in:
Christoph Oelckers 2012-03-07 01:03:56 +00:00
commit d3981197c5
4 changed files with 8 additions and 5 deletions

View file

@ -102,6 +102,7 @@ class ARandomSpawner : public AActor
{
AActor * newmobj = NULL;
bool boss = false;
Super::PostBeginPlay();
if (Species == NAME_None) { Destroy(); return; }
const PClass * cls = PClass::FindClass(Species);
if (this->flags & MF_MISSILE && target && target->target) // Attempting to spawn a missile.