Skip to content

Commit

Permalink
- fixed: Actors did not set the position when spawning a dynamic light.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
coelckers committed Jul 25, 2021
1 parent 9242181 commit bfe13da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/playsim/a_dynlight.cpp
Expand Up @@ -748,6 +748,7 @@ void AActor::AttachLight(unsigned int count, const FLightDefaults *lightdef)
AttachedLights.Push(light);
}
lightdef->ApplyProperties(light);
light->Pos = Pos();
}

//==========================================================================
Expand Down

0 comments on commit bfe13da

Please sign in to comment.