mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- call UpdateSectorRenderList from LinkToWorld as well, because this can be called from outside the actor's Tick function.
This commit is contained in:
parent
89b2cc45a2
commit
2661a94fe9
2 changed files with 2 additions and 1 deletions
|
@ -6246,7 +6246,7 @@ void P_CreateSecNodeList(AActor *thing)
|
|||
void AActor::UpdateRenderSectorList()
|
||||
{
|
||||
static const double SPRITE_SPACE = 64.;
|
||||
if (Pos() != OldRenderPos)
|
||||
if (Pos() != OldRenderPos && !(flags & MF_NOSECTOR))
|
||||
{
|
||||
sector_t *sec = Sector;
|
||||
double lasth = -FLT_MAX;
|
||||
|
|
|
@ -499,6 +499,7 @@ void AActor::LinkToWorld(bool spawningmapthing, sector_t *sector)
|
|||
}
|
||||
}
|
||||
}
|
||||
UpdateRenderSectorList();
|
||||
}
|
||||
|
||||
void AActor::SetOrigin(double x, double y, double z, bool moving)
|
||||
|
|
Loading…
Reference in a new issue