From e5bcb8ee610a44d8a9a2bf842b1f17ce32c1d23f Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 5 Jan 2022 22:45:10 +1100 Subject: [PATCH] - 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.". --- source/games/duke/src/actors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/actors.cpp b/source/games/duke/src/actors.cpp index 13e7f9e8f..ffea4d295 100644 --- a/source/games/duke/src/actors.cpp +++ b/source/games/duke/src/actors.cpp @@ -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; }