mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-31 05:40:44 +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()
|
void AActor::UpdateRenderSectorList()
|
||||||
{
|
{
|
||||||
static const double SPRITE_SPACE = 64.;
|
static const double SPRITE_SPACE = 64.;
|
||||||
if (Pos() != OldRenderPos)
|
if (Pos() != OldRenderPos && !(flags & MF_NOSECTOR))
|
||||||
{
|
{
|
||||||
sector_t *sec = Sector;
|
sector_t *sec = Sector;
|
||||||
double lasth = -FLT_MAX;
|
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)
|
void AActor::SetOrigin(double x, double y, double z, bool moving)
|
||||||
|
|
Loading…
Reference in a new issue