mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-21 11:01:36 +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
ffa939668e
commit
700c2372ed
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