From 1fb85b0a8de0a80429f1a7ce9c10b39f05503aa7 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 27 Sep 2022 18:26:31 +1000 Subject: [PATCH] - Use `deltaangle()` in a few places with our DAngle horizon. --- source/games/duke/src/player_r.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/duke/src/player_r.cpp b/source/games/duke/src/player_r.cpp index 1e174c2da..44ef737c2 100644 --- a/source/games/duke/src/player_r.cpp +++ b/source/games/duke/src/player_r.cpp @@ -1761,7 +1761,7 @@ static void onMotorcycle(int snum, ESyncBits &actions) } if (horiz != FRACUNIT) { - p->horizon.addadjustment(maphoriz(horiz) - p->horizon.horiz); + p->horizon.addadjustment(deltaangle(p->horizon.horiz, maphoriz(horiz))); } const DAngle adjust = mapangle(-510); @@ -2029,7 +2029,7 @@ static void onBoat(int snum, ESyncBits &actions) } if (horiz != FRACUNIT) { - p->horizon.addadjustment(maphoriz(horiz) - p->horizon.horiz); + p->horizon.addadjustment(deltaangle(p->horizon.horiz, maphoriz(horiz))); } if (p->MotoSpeed > 0 && p->on_ground == 1 && (p->vehTurnLeft || p->vehTurnRight))