mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- removed a few redundant GetIndex calls.
This commit is contained in:
parent
9826ff54f9
commit
d4ee8a1c48
1 changed files with 9 additions and 9 deletions
|
@ -4305,7 +4305,7 @@ void handle_se20(DDukeActor* actor)
|
|||
s->x -= x;
|
||||
s->y -= l;
|
||||
t[0] = 0;
|
||||
callsound(s->sectnum, actor->GetIndex());
|
||||
callsound(s->sectnum, actor);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -4668,7 +4668,7 @@ void handle_se32(DDukeActor *actor)
|
|||
if (abs(sc->ceilingz - s->z) < (s->yvel << 1))
|
||||
{
|
||||
sc->ceilingz = s->z;
|
||||
callsound(s->sectnum, actor->GetIndex());
|
||||
callsound(s->sectnum, actor);
|
||||
t[2] = 0;
|
||||
t[0] = 0;
|
||||
}
|
||||
|
@ -4679,7 +4679,7 @@ void handle_se32(DDukeActor *actor)
|
|||
if (abs(sc->ceilingz - t[1]) < (s->yvel << 1))
|
||||
{
|
||||
sc->ceilingz = t[1];
|
||||
callsound(s->sectnum, actor->GetIndex());
|
||||
callsound(s->sectnum, actor);
|
||||
t[2] = 0;
|
||||
t[0] = 0;
|
||||
}
|
||||
|
@ -4694,7 +4694,7 @@ void handle_se32(DDukeActor *actor)
|
|||
{
|
||||
t[0] = 0;
|
||||
t[2] = !t[2];
|
||||
callsound(s->sectnum, actor->GetIndex());
|
||||
callsound(s->sectnum, actor);
|
||||
sc->ceilingz = s->z;
|
||||
}
|
||||
else sc->ceilingz += sgn(s->z - sc->ceilingz) * s->yvel;
|
||||
|
@ -4705,7 +4705,7 @@ void handle_se32(DDukeActor *actor)
|
|||
{
|
||||
t[0] = 0;
|
||||
t[2] = !t[2];
|
||||
callsound(s->sectnum, actor->GetIndex());
|
||||
callsound(s->sectnum, actor);
|
||||
}
|
||||
else sc->ceilingz -= sgn(s->z - t[1]) * s->yvel;
|
||||
}
|
||||
|
@ -4859,7 +4859,7 @@ void handle_se31(DDukeActor* actor, bool choosedir)
|
|||
t[2] = 0;
|
||||
t[0] = 0;
|
||||
if (choosedir) t[3] = s->hitag;
|
||||
callsound(s->sectnum, actor->GetIndex());
|
||||
callsound(s->sectnum, actor);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -4885,7 +4885,7 @@ void handle_se31(DDukeActor* actor, bool choosedir)
|
|||
if (abs(sec->floorz - t[1]) < s->yvel)
|
||||
{
|
||||
sec->floorz = t[1];
|
||||
callsound(s->sectnum, actor->GetIndex());
|
||||
callsound(s->sectnum, actor);
|
||||
t[2] = 0;
|
||||
t[0] = 0;
|
||||
if (choosedir) t[3] = s->hitag;
|
||||
|
@ -4916,7 +4916,7 @@ void handle_se31(DDukeActor* actor, bool choosedir)
|
|||
{
|
||||
if (abs(s->z - sec->floorz) < s->yvel)
|
||||
{
|
||||
callsound(s->sectnum, actor->GetIndex());
|
||||
callsound(s->sectnum, actor);
|
||||
t[0] = 0;
|
||||
t[2] = 1;
|
||||
if (choosedir) t[3] = s->hitag;
|
||||
|
@ -4945,7 +4945,7 @@ void handle_se31(DDukeActor* actor, bool choosedir)
|
|||
if (abs(sec->floorz - t[1]) < s->yvel)
|
||||
{
|
||||
t[0] = 0;
|
||||
callsound(s->sectnum, actor->GetIndex());
|
||||
callsound(s->sectnum, actor);
|
||||
t[2] = 1;
|
||||
t[3] = s->hitag;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue