From 59850fa768848e6aad8fc4c8761c86f8f74eef06 Mon Sep 17 00:00:00 2001 From: Mitch Richters Date: Mon, 1 Nov 2021 23:30:17 +1100 Subject: [PATCH] - SW: When adjusting horizon in `DoPlayerDeathHoriz()`, just use integer horizon values and not Q16.16. --- source/games/sw/src/player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/sw/src/player.cpp b/source/games/sw/src/player.cpp index e6acd7fc3..32efb8132 100644 --- a/source/games/sw/src/player.cpp +++ b/source/games/sw/src/player.cpp @@ -6038,12 +6038,12 @@ DoPlayerBeginDie(PLAYERp pp) void DoPlayerDeathHoriz(PLAYERp pp, short target, short speed) { - if ((pp->horizon.horiz.asq16() - IntToFixed(target)) > FRACUNIT) + if ((pp->horizon.horiz.asbuild() - target) > 1) { pp->horizon.addadjustment(-speed); } - if ((IntToFixed(target) - pp->horizon.horiz.asq16()) > FRACUNIT) + if ((target - pp->horizon.horiz.asbuild()) > 1) { pp->horizon.addadjustment(speed); }