- cleanup - flag name and removal of unused code.

This commit is contained in:
Christoph Oelckers 2022-01-19 08:21:12 +01:00
parent 2468debe34
commit eae5ca93d0
2 changed files with 1 additions and 26 deletions

View file

@ -3733,31 +3733,6 @@ void LoadActor(DDukeActor *actor, int p, int x)
else if (actor->timetosleep == 1)
ChangeActorStat(actor, STAT_ZOMBIEACTOR);
}
else if (actor->spr.statnum == 6)
{
#if 0
switch (actor->s.picnum)
{
case RUBBERCAN:
case EXPLODINGBARREL:
case WOODENHORSE:
case HORSEONSIDE:
case CANWITHSOMETHING:
case FIREBARREL:
case NUKEBARREL:
case NUKEBARRELDENTED:
case NUKEBARRELLEAKED:
case TRIPBOMB:
case EGG:
if (actor->timetosleep > 1)
actor->timetosleep--;
else if (actor->timetosleep == 1)
changespritestat(i, 2);
break;
}
#endif
}
}
}

View file

@ -872,7 +872,7 @@ static void shootlaser(DDukeActor* actor, int p, int sx, int sy, int sz, int sa)
if (j == 1)
{
auto bomb = EGS(hit.hitSector, hit.hitpos.X, hit.hitpos.Y, hit.hitpos.Z, TRIPBOMB, -16, 4, 5, sa, 0, 0, actor, 6);
auto bomb = EGS(hit.hitSector, hit.hitpos.X, hit.hitpos.Y, hit.hitpos.Z, TRIPBOMB, -16, 4, 5, sa, 0, 0, actor, STAT_STANDABLE);
if (!bomb) return;
if (isWW2GI())
{