mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 13:00:43 +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)
|
||||
{
|
||||
sectortype* sptr = §or[sn];
|
||||
int i,j;
|
||||
int j;
|
||||
REDODOOR:
|
||||
|
||||
if (sptr->lotag & 0x8000)
|
||||
{
|
||||
SectIterator it(sn);
|
||||
while ((i = it.NextIndex()) >= 0)
|
||||
DDukeActor* a2;
|
||||
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;
|
||||
}
|
||||
}
|
||||
if (i == -1)
|
||||
if (a2 == nullptr)
|
||||
j = sptr->floorz;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue