- moved the FRenderer::StateChanged call from AActor::StaticSpawn to AActor::PostBeginPlay. When AActor::StaticSpawn is called at the start of a map not everything has been set up yet, resulting in access to uninitialized data. In particular the partner segs were not set up which are needed by the dynlight code that gets called from StateChanged.

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


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1302 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
Christoph Oelckers 2012-03-07 01:05:59 +00:00
parent 6ebe895fac
commit d4275907f4
5 changed files with 9 additions and 10 deletions

View file

@ -532,6 +532,7 @@ void APlayerPawn::Tick()
void APlayerPawn::PostBeginPlay()
{
Super::PostBeginPlay();
SetupWeaponSlots();
// Voodoo dolls: restore original floorz/ceilingz logic