mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
- 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.
This commit is contained in:
parent
b0ccd3a7df
commit
30e24938ca
1 changed files with 1 additions and 1 deletions
|
@ -748,7 +748,7 @@ void AActor::AttachLight(unsigned int count, const FLightDefaults *lightdef)
|
|||
AttachedLights.Push(light);
|
||||
}
|
||||
lightdef->ApplyProperties(light);
|
||||
light->Pos = Pos();
|
||||
light->UpdateLocation();
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue