mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- fixed: particles used their subsector variables before it was set.
This commit is contained in:
parent
981a343589
commit
651b412583
1 changed files with 1 additions and 1 deletions
|
@ -263,8 +263,8 @@ void P_ThinkParticles (FLevelLocals *Level)
|
|||
particle->Pos.Y = newxy.Y;
|
||||
particle->Pos.Z += particle->Vel.Z;
|
||||
particle->Vel += particle->Acc;
|
||||
particle->subsector = R_PointInSubsector(Level, particle->Pos);
|
||||
sector_t *s = particle->subsector->sector;
|
||||
particle->subsector = R_PointInSubsector(s->Level, particle->Pos);
|
||||
// Handle crossing a sector portal.
|
||||
if (!s->PortalBlocksMovement(sector_t::ceiling))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue