mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- checkhitswitch_r part 4
This commit is contained in:
parent
4ce19b74b0
commit
3e7c8adc1e
1 changed files with 9 additions and 10 deletions
|
@ -552,19 +552,18 @@ bool checkhitswitch_r(int snum, int w, int switchtype)
|
|||
if (si->picnum == DIPSWITCH3)
|
||||
if (si->hitag == 999)
|
||||
{
|
||||
int j;
|
||||
StatIterator it1(107);
|
||||
while ((j = it1.NextIndex()) >= 0)
|
||||
DukeStatIterator it1(107);
|
||||
while (auto other2 = it1.Next())
|
||||
{
|
||||
if (sprite[j].picnum == RRTILE3410)
|
||||
if (other2->s.picnum == RRTILE3410)
|
||||
{
|
||||
sprite[j].picnum++;
|
||||
sprite[j].hitag = 100;
|
||||
sprite[j].extra = 0;
|
||||
S_PlayActorSound(474, j);
|
||||
other2->s.picnum++;
|
||||
other2->s.hitag = 100;
|
||||
other2->s.extra = 0;
|
||||
S_PlayActorSound(474, other2);
|
||||
}
|
||||
else if (sprite[j].picnum == RRTILE295)
|
||||
deletesprite(j);
|
||||
else if (other2->s.picnum == RRTILE295)
|
||||
deletesprite(other2);
|
||||
}
|
||||
si->picnum++;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue