mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 12:30:40 +00:00
- floatified SE16
This commit is contained in:
parent
e4898af11a
commit
4ded343aa5
2 changed files with 4 additions and 4 deletions
|
@ -3744,10 +3744,10 @@ void handle_se16(DDukeActor* actor, int REACTOR, int REACTOR2)
|
|||
{
|
||||
auto sc = actor->sector();
|
||||
|
||||
actor->temp_data[2] += 32;
|
||||
actor->temp_angle += DAngle22_5 / 4;
|
||||
if (sc->floorz < sc->ceilingz) actor->spr.shade = 0;
|
||||
|
||||
else if (sc->int_ceilingz() < actor->temp_data[3])
|
||||
else if (sc->ceilingz < actor->temp_pos.Z)
|
||||
{
|
||||
|
||||
//The following code check to see if
|
||||
|
@ -3773,7 +3773,7 @@ void handle_se16(DDukeActor* actor, int REACTOR, int REACTOR2)
|
|||
if (actor->spr.shade) sc->addceilingz(4);
|
||||
else sc->addceilingz(-2);
|
||||
|
||||
movesector(actor, actor->temp_data[1], DAngle::fromBuild(actor->temp_data[2]));
|
||||
movesector(actor, actor->temp_data[1], actor->temp_angle);
|
||||
//SetActor(actor, actor->spr.pos);
|
||||
}
|
||||
|
||||
|
|
|
@ -953,7 +953,7 @@ void spawneffector(DDukeActor* actor, TArray<DDukeActor*>* actors)
|
|||
}
|
||||
|
||||
else if (actor->spr.lotag == SE_16_REACTOR)
|
||||
actor->temp_data[3] = sectp->int_ceilingz();
|
||||
actor->temp_pos.Z = sectp->ceilingz;
|
||||
|
||||
else if (actor->spr.lotag == SE_26)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue