- avoid propagating owner flags where easily doable.

This particular case is done a lot better by setting a special flag.
This commit is contained in:
Christoph Oelckers 2022-11-29 22:33:09 +01:00
parent 59659bc284
commit f6fe639233
2 changed files with 3 additions and 2 deletions

View file

@ -880,7 +880,7 @@ bool bloodpool(DDukeActor* actor, bool puke)
if (actor->temp_data[2] < 32)
{
actor->temp_data[2]++;
if (attackerflag(actor, SFLAG_FLAMMABLEPOOLEFFECT))
if (actor->spr.detail == 1)
{
if (actor->spr.scale.X < 1 && actor->spr.scale.Y < 1)
{
@ -916,7 +916,7 @@ bool bloodpool(DDukeActor* actor, bool puke)
if (actor->temp_data[1] == 1) return false;
actor->temp_data[1] = 1;
if (attackerflag(actor, SFLAG_FLAMMABLEPOOLEFFECT))
if (actor->spr.detail == 1)
ps[p].footprintcount = 10;
else ps[p].footprintcount = 3;

View file

@ -26,6 +26,7 @@ class DukeFlammable : DukeActor
{
spawned.pal = 2;
spawned.shade = 127;
spawned.detail = 1;
}
}
else