mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-11 05:01:09 +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