From e3c2757f1c69661146415a88921767f6810d2c88 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 2 Apr 2021 23:23:24 +1100 Subject: [PATCH] - sethorizon(): Ensure `SB_CENTERVIEW` bit is always cleared if horizon target is set. --- source/core/gameinput.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/core/gameinput.cpp b/source/core/gameinput.cpp index 3172631d9..bbd8b0968 100644 --- a/source/core/gameinput.cpp +++ b/source/core/gameinput.cpp @@ -330,6 +330,10 @@ void sethorizon(PlayerHorizon* horizon, float const horz, ESyncBits* actions, do } } } + else + { + *actions &= ~SB_CENTERVIEW; + } } //---------------------------------------------------------------------------