mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-01 14:11:01 +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)
|
static void handle_st27(int sn, DDukeActor* actor)
|
||||||
{
|
{
|
||||||
int j;
|
DukeStatIterator it(STAT_EFFECTOR);
|
||||||
StatIterator it(STAT_EFFECTOR);
|
while (auto act2 = it.Next())
|
||||||
while ((j = it.NextIndex()) >= 0)
|
|
||||||
{
|
{
|
||||||
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;
|
sector[sn].lotag ^= 0x8000;
|
||||||
if (sector[sn].lotag & 0x8000) //OPENING
|
if (sector[sn].lotag & 0x8000) //OPENING
|
||||||
hittype[j].temp_data[0] = 1;
|
act2->temp_data[0] = 1;
|
||||||
else hittype[j].temp_data[0] = 2;
|
else act2->temp_data[0] = 2;
|
||||||
callsound(sn, actor);
|
callsound(sn, actor);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue