- let dynamic lights call UpdateLocation instead of just setting their position right after being spawned.

This ensures that the position is correct and that everything gets set up properly.
This commit is contained in:
Christoph Oelckers 2021-05-31 22:13:03 +02:00 committed by Emile Belanger
parent ffa939668e
commit 700c2372ed

View file

@ -748,7 +748,7 @@ void AActor::AttachLight(unsigned int count, const FLightDefaults *lightdef)
AttachedLights.Push(light);
}
lightdef->ApplyProperties(light);
light->Pos = Pos();
light->UpdateLocation();
}
//==========================================================================