From 20b665c161cf302a9a4d7991260f588a71b00630 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 82d4d94ad..b6feaf277 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(); } //==========================================================================