From 30e24938ca4e2a572de17f9ce7c5dac9e138c617 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 31 May 2021 22:13:03 +0200 Subject: [PATCH] - 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. --- src/playsim/a_dynlight.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playsim/a_dynlight.cpp b/src/playsim/a_dynlight.cpp index b6feaf277..4750dddfa 100644 --- a/src/playsim/a_dynlight.cpp +++ b/src/playsim/a_dynlight.cpp @@ -748,7 +748,7 @@ void AActor::AttachLight(unsigned int count, const FLightDefaults *lightdef) AttachedLights.Push(light); } lightdef->ApplyProperties(light); - light->Pos = Pos(); + light->UpdateLocation(); } //==========================================================================