Skip to content

Commit

Permalink
- let dynamic lights call UpdateLocation instead of just setting thei…
Browse files Browse the repository at this point in the history
…r position right after being spawned.

This ensures that the position is correct and that everything gets set up properly.
  • Loading branch information
coelckers committed Jul 25, 2021
1 parent 1046dae commit 8c58a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playsim/a_dynlight.cpp
Expand Up @@ -748,7 +748,7 @@ void AActor::AttachLight(unsigned int count, const FLightDefaults *lightdef)
AttachedLights.Push(light);
}
lightdef->ApplyProperties(light);
light->Pos = Pos();
light->UpdateLocation();
}

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

0 comments on commit 8c58a7a

Please sign in to comment.