From bfe13da3ce8f45c20212e28135cf07a59bf0a672 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 28 May 2021 11:25:01 +0200 Subject: [PATCH] - 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. --- src/playsim/a_dynlight.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/playsim/a_dynlight.cpp b/src/playsim/a_dynlight.cpp index 82d4d94adac..b6feaf277e8 100644 --- a/src/playsim/a_dynlight.cpp +++ b/src/playsim/a_dynlight.cpp @@ -748,6 +748,7 @@ void AActor::AttachLight(unsigned int count, const FLightDefaults *lightdef) AttachedLights.Push(light); } lightdef->ApplyProperties(light); + light->Pos = Pos(); } //==========================================================================