- call UpdateSectorRenderList from LinkToWorld as well, because this can be called from outside the actor's Tick function.

This commit is contained in:
Christoph Oelckers 2016-04-18 01:35:37 +02:00
parent 89b2cc45a2
commit 2661a94fe9
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -499,6 +499,7 @@ void AActor::LinkToWorld(bool spawningmapthing, sector_t *sector)
}
}
}
UpdateRenderSectorList();
}
void AActor::SetOrigin(double x, double y, double z, bool moving)