mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- SE14 part 4
This commit is contained in:
parent
1cffc76c4e
commit
1b6161d472
1 changed files with 13 additions and 11 deletions
|
@ -2972,20 +2972,22 @@ void handle_se14(int i, bool checkstat, int RPG, int JIBS6)
|
|||
}
|
||||
}
|
||||
|
||||
SectIterator itr(sprite[s->owner].sectnum);
|
||||
while ((j = itr.NextIndex()) >= 0)
|
||||
auto Owner = actor->GetOwner();
|
||||
if (Owner)
|
||||
{
|
||||
auto spj = &sprite[j];
|
||||
|
||||
if (spj->statnum == 1 && badguy(spj) && spj->picnum != SECTOREFFECTOR && spj->picnum != LOCATORS)
|
||||
DukeSectIterator itr(Owner->s.sectnum);
|
||||
while (auto a2 = itr.Next())
|
||||
{
|
||||
short k = spj->sectnum;
|
||||
updatesector(spj->x, spj->y, &k);
|
||||
if (spj->extra >= 0 && k == s->sectnum)
|
||||
if (a2->s.statnum == 1 && badguy(a2) && a2->s.picnum != SECTOREFFECTOR && a2->s.picnum != LOCATORS)
|
||||
{
|
||||
fi.gutsdir(&sprite[j], JIBS6, 72, myconnectindex);
|
||||
S_PlayActorSound(SQUISHED, i);
|
||||
deletesprite(j);
|
||||
short k = a2->s.sectnum;
|
||||
updatesector(a2->s.x, a2->s.y, &k);
|
||||
if (a2->s.extra >= 0 && k == s->sectnum)
|
||||
{
|
||||
fi.gutsdir(&a2->s, JIBS6, 72, myconnectindex);
|
||||
S_PlayActorSound(SQUISHED, actor);
|
||||
deletesprite(a2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue