mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-01 14:11:01 +00:00
- handle_st20.
This commit is contained in:
parent
2afbbcb157
commit
e6507887d3
1 changed files with 7 additions and 6 deletions
|
@ -703,21 +703,22 @@ static void handle_st29(int sn, DDukeActor* actor)
|
||||||
static void handle_st20(int sn, DDukeActor* actor)
|
static void handle_st20(int sn, DDukeActor* actor)
|
||||||
{
|
{
|
||||||
sectortype* sptr = §or[sn];
|
sectortype* sptr = §or[sn];
|
||||||
int i,j;
|
int j;
|
||||||
REDODOOR:
|
REDODOOR:
|
||||||
|
|
||||||
if (sptr->lotag & 0x8000)
|
if (sptr->lotag & 0x8000)
|
||||||
{
|
{
|
||||||
SectIterator it(sn);
|
DDukeActor* a2;
|
||||||
while ((i = it.NextIndex()) >= 0)
|
DukeSectIterator it(sn);
|
||||||
|
while ((a2 = it.Next()))
|
||||||
{
|
{
|
||||||
if (sprite[i].statnum == 3 && sprite[i].lotag == 9)
|
if (a2->s.statnum == 3 && a2->s.lotag == 9)
|
||||||
{
|
{
|
||||||
j = sprite[i].z;
|
j = a2->s.z;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (i == -1)
|
if (a2 == nullptr)
|
||||||
j = sptr->floorz;
|
j = sptr->floorz;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue