- Duke: Repair issues with handle_se32() following lost Sgn() call.

* Originated from "- first batch of routing all write access to sectortype::ceilingz and floorz through a function interface.".
This commit is contained in:
Mitchell Richters 2022-01-05 22:45:10 +11:00
parent e1d32bdbf5
commit e5bcb8ee61

View file

@ -4520,7 +4520,7 @@ void handle_se32(DDukeActor *actor)
actor->temp_data[2] = 0;
actor->temp_data[0] = 0;
}
else sc->addceilingz((actor->temp_data[1] - sc->ceilingz) * actor->spr.yvel);
else sc->addceilingz(Sgn(actor->temp_data[1] - sc->ceilingz) * actor->spr.yvel);
}
return;
}