mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 00:41:55 +00:00
- minor cleanup.
This commit is contained in:
parent
d83e203b8d
commit
10e4c90d37
2 changed files with 18 additions and 18 deletions
|
@ -969,7 +969,7 @@ void handle_se14(DDukeActor* actor, bool checkstat, int RPG, int JIBS6)
|
|||
while (auto a2 = it.Next())
|
||||
{
|
||||
if (a2->spr.statnum != STAT_PLAYER && a2->sector()->lotag != 2 &&
|
||||
(a2->spr.picnum != SECTOREFFECTOR || a2->spr.lotag == SE_49_POINT_LIGHT || a2->spr.lotag == SE_50_SPOT_LIGHT) &&
|
||||
(!iseffector(a2) || a2->spr.lotag == SE_49_POINT_LIGHT || a2->spr.lotag == SE_50_SPOT_LIGHT) &&
|
||||
!islocator(a2))
|
||||
{
|
||||
a2->spr.pos.XY() = rotatepoint(actor->spr.pos.XY(), a2->spr.pos.XY(), diffangle) + vec;
|
||||
|
@ -1013,7 +1013,7 @@ void handle_se14(DDukeActor* actor, bool checkstat, int RPG, int JIBS6)
|
|||
DukeSectIterator itr(actOwner->sector());
|
||||
while (auto a2 = itr.Next())
|
||||
{
|
||||
if (a2->spr.statnum == 1 && badguy(a2) && a2->spr.picnum != SECTOREFFECTOR && !islocator(a2))
|
||||
if (a2->spr.statnum == 1 && badguy(a2) && !iseffector(a2) && !islocator(a2))
|
||||
{
|
||||
auto k = a2->sector();
|
||||
updatesector(a2->spr.pos, &k);
|
||||
|
@ -1132,7 +1132,7 @@ void handle_se30(DDukeActor *actor, int JIBS6)
|
|||
DukeSectIterator its(actor->sector());
|
||||
while (auto a2 = its.Next())
|
||||
{
|
||||
if (a2->spr.picnum != SECTOREFFECTOR && !islocator(a2))
|
||||
if (!iseffector(a2) && !islocator(a2))
|
||||
{
|
||||
a2->spr.pos += vect;
|
||||
|
||||
|
@ -1171,7 +1171,7 @@ void handle_se30(DDukeActor *actor, int JIBS6)
|
|||
DukeSectIterator it(Owner->sector());
|
||||
while (auto a2 = it.Next())
|
||||
{
|
||||
if (a2->spr.statnum == STAT_ACTOR && badguy(a2) && a2->spr.picnum != SECTOREFFECTOR && !islocator(a2))
|
||||
if (a2->spr.statnum == STAT_ACTOR && badguy(a2) && !iseffector(a2) && !islocator(a2))
|
||||
{
|
||||
// if(a2->spr.sector != actor->spr.sector)
|
||||
{
|
||||
|
@ -1247,7 +1247,7 @@ void handle_se02(DDukeActor* actor)
|
|||
DukeSectIterator it(actor->sector());
|
||||
while (auto a2 = it.Next())
|
||||
{
|
||||
if (a2->spr.picnum != SECTOREFFECTOR)
|
||||
if (!iseffector(a2))
|
||||
{
|
||||
a2->spr.pos += vect;
|
||||
SetActor(a2, a2->spr.pos);
|
||||
|
|
|
@ -179,14 +179,14 @@ DDukeActor* spawninit_d(DDukeActor* actj, DDukeActor* act, TArray<DDukeActor*>*
|
|||
ChangeActorStat(act, STAT_MISC);
|
||||
break;
|
||||
|
||||
case FEMMAG1:
|
||||
case FEMMAG2:
|
||||
case FEMMAG1: // ok
|
||||
case FEMMAG2: // ok
|
||||
act->spr.cstat &= ~CSTAT_SPRITE_BLOCK_ALL;
|
||||
ChangeActorStat(act, 0);
|
||||
break;
|
||||
case DUKETAG:
|
||||
case SIGN1:
|
||||
case SIGN2:
|
||||
case DUKETAG: // ok
|
||||
case SIGN1: // ok
|
||||
case SIGN2: // ok
|
||||
if (ud.multimode < 2 && act->spr.pal)
|
||||
{
|
||||
act->spr.scale = DVector2(0, 0);
|
||||
|
@ -194,7 +194,7 @@ DDukeActor* spawninit_d(DDukeActor* actj, DDukeActor* act, TArray<DDukeActor*>*
|
|||
}
|
||||
else act->spr.pal = 0;
|
||||
break;
|
||||
case MASKWALL1:
|
||||
case MASKWALL1: // all ok
|
||||
case MASKWALL2:
|
||||
case MASKWALL3:
|
||||
case MASKWALL4:
|
||||
|
@ -215,7 +215,7 @@ DDukeActor* spawninit_d(DDukeActor* actj, DDukeActor* act, TArray<DDukeActor*>*
|
|||
ChangeActorStat(act, 0);
|
||||
break;
|
||||
}
|
||||
case FOOTPRINTS:
|
||||
case FOOTPRINTS: // ok
|
||||
case FOOTPRINTS2:
|
||||
case FOOTPRINTS3:
|
||||
case FOOTPRINTS4:
|
||||
|
@ -264,13 +264,13 @@ DDukeActor* spawninit_d(DDukeActor* actj, DDukeActor* act, TArray<DDukeActor*>*
|
|||
if (act->spr.picnum == MIKE)
|
||||
act->spr.yint = act->spr.hitag;
|
||||
[[fallthrough]];
|
||||
case WEATHERWARN:
|
||||
case WEATHERWARN: // ok
|
||||
ChangeActorStat(act, STAT_ACTOR);
|
||||
break;
|
||||
|
||||
case SPOTLITE:
|
||||
case SPOTLITE: // ok
|
||||
break;
|
||||
case BULLETHOLE:
|
||||
case BULLETHOLE: // ok
|
||||
act->spr.scale = DVector2(0.046875, 0.046875);
|
||||
act->spr.cstat = CSTAT_SPRITE_ALIGNMENT_WALL | randomFlip();
|
||||
insertspriteq(act);
|
||||
|
@ -371,7 +371,7 @@ DDukeActor* spawninit_d(DDukeActor* actj, DDukeActor* act, TArray<DDukeActor*>*
|
|||
ChangeActorStat(act, STAT_MISC);
|
||||
break;
|
||||
|
||||
case WATERDRIPSPLASH:
|
||||
case WATERDRIPSPLASH: // ok
|
||||
act->spr.scale = DVector2(0.375, 0.375);
|
||||
ChangeActorStat(act, STAT_STANDABLE);
|
||||
break;
|
||||
|
@ -594,14 +594,14 @@ DDukeActor* spawninit_d(DDukeActor* actj, DDukeActor* act, TArray<DDukeActor*>*
|
|||
ChangeActorStat(act, STAT_STANDABLE);
|
||||
break;
|
||||
|
||||
case CAMERAPOLE:
|
||||
case CAMERAPOLE: // ok
|
||||
act->spr.extra = 1;
|
||||
|
||||
if (gs.camerashitable) act->spr.cstat = CSTAT_SPRITE_BLOCK_ALL;
|
||||
else act->spr.cstat = 0;
|
||||
[[fallthrough]];
|
||||
|
||||
case GENERICPOLE:
|
||||
case GENERICPOLE: // ok
|
||||
|
||||
if (ud.multimode < 2 && act->spr.pal != 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue