mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 13:00:43 +00:00
- handle_st27.
This commit is contained in:
parent
d4c53226d0
commit
06695073d0
1 changed files with 5 additions and 6 deletions
|
@ -891,17 +891,16 @@ static void handle_st25(int sn, DDukeActor* actor)
|
|||
|
||||
static void handle_st27(int sn, DDukeActor* actor)
|
||||
{
|
||||
int j;
|
||||
StatIterator it(STAT_EFFECTOR);
|
||||
while ((j = it.NextIndex()) >= 0)
|
||||
DukeStatIterator it(STAT_EFFECTOR);
|
||||
while (auto act2 = it.Next())
|
||||
{
|
||||
if ((sprite[j].lotag & 0xff) == 20 && sprite[j].sectnum == sn) //Bridge
|
||||
if ((act2->s.lotag & 0xff) == 20 && act2->s.sectnum == sn) //Bridge
|
||||
{
|
||||
|
||||
sector[sn].lotag ^= 0x8000;
|
||||
if (sector[sn].lotag & 0x8000) //OPENING
|
||||
hittype[j].temp_data[0] = 1;
|
||||
else hittype[j].temp_data[0] = 2;
|
||||
act2->temp_data[0] = 1;
|
||||
else act2->temp_data[0] = 2;
|
||||
callsound(sn, actor);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue