- 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
commit 30e24938ca

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();
}
//==========================================================================