mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-27 06:22:13 +00:00
- 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:
parent
f2b13410a5
commit
ac1d1a90e0
2 changed files with 4 additions and 4 deletions
|
@ -56,7 +56,7 @@ class DukeBurning : DukeActor
|
|||
}
|
||||
t.cstat |= CSTAT_SPRITE_YCENTER;
|
||||
double d;
|
||||
if (!OwnerAc || !OwnerAc.bNOFLOORFIRE)
|
||||
if (!bNOFLOORFIRE)
|
||||
[d, t.pos.Z] = t.sector.getSlopes(t.pos.XY);
|
||||
return false;
|
||||
}
|
||||
|
@ -84,8 +84,7 @@ class RedneckFire : DukeActor
|
|||
{
|
||||
let OwnerAc = self.ownerActor;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,7 +71,8 @@ class DukeFlammable : DukeActor
|
|||
{
|
||||
self.cstat &= ~CSTAT_SPRITE_BLOCK_ALL;
|
||||
self.counter = 1;
|
||||
self.spawn("DukeBurning");
|
||||
let burn = self.spawn("DukeBurning");
|
||||
if (burn) burn.bNoFloorFire = self.bNoFloorFire;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue