- fixed: Actors did not set the position when spawning a dynamic light.

It always reused the previous content of the 'Pos' field which was either undefined or an older position where the actor was located when last spawning a light.
This commit is contained in:
Christoph Oelckers 2021-05-28 11:25:01 +02:00
parent d36fd4f42b
commit 20b665c161

View file

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