diff --git a/source/games/duke/src/actors.cpp b/source/games/duke/src/actors.cpp index dfd81719f..890e13ceb 100644 --- a/source/games/duke/src/actors.cpp +++ b/source/games/duke/src/actors.cpp @@ -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); } diff --git a/source/games/duke/src/spawn.cpp b/source/games/duke/src/spawn.cpp index 0eb8ea263..ab7ceebe4 100644 --- a/source/games/duke/src/spawn.cpp +++ b/source/games/duke/src/spawn.cpp @@ -953,7 +953,7 @@ void spawneffector(DDukeActor* actor, TArray* 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) {