- transfer the nofloorfire flag to the flame actor.

When checked on the owner it can fall victim to garbage collection.
This commit is contained in:
Christoph Oelckers 2022-12-28 22:28:38 +01:00
parent f2b13410a5
commit ac1d1a90e0
2 changed files with 4 additions and 4 deletions

View file

@ -56,7 +56,7 @@ class DukeBurning : DukeActor
} }
t.cstat |= CSTAT_SPRITE_YCENTER; t.cstat |= CSTAT_SPRITE_YCENTER;
double d; double d;
if (!OwnerAc || !OwnerAc.bNOFLOORFIRE) if (!bNOFLOORFIRE)
[d, t.pos.Z] = t.sector.getSlopes(t.pos.XY); [d, t.pos.Z] = t.sector.getSlopes(t.pos.XY);
return false; return false;
} }
@ -84,8 +84,7 @@ class RedneckFire : DukeActor
{ {
let OwnerAc = self.ownerActor; let OwnerAc = self.ownerActor;
double d; double d;
if (!OwnerAc || !OwnerAc.bNOFLOORFIRE) [d, t.pos.Z] = t.sector.getSlopes(t.pos.XY);
[d, t.pos.Z] = t.sector.getSlopes(t.pos.XY);
return false; return false;
} }
} }

View file

@ -71,7 +71,8 @@ class DukeFlammable : DukeActor
{ {
self.cstat &= ~CSTAT_SPRITE_BLOCK_ALL; self.cstat &= ~CSTAT_SPRITE_BLOCK_ALL;
self.counter = 1; self.counter = 1;
self.spawn("DukeBurning"); let burn = self.spawn("DukeBurning");
if (burn) burn.bNoFloorFire = self.bNoFloorFire;
} }
} }
} }