From 8f68e8b4a1835326a1003e60a9286c02659d3c4c Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sat, 10 Oct 2020 17:52:43 +1100 Subject: [PATCH] - Amend 2865fef7ed55be6ad9b6682d2f32f8e942fd9154 as accidentally returned horizon as Build and not Q16.16. --- source/games/duke/src/gameexec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/gameexec.cpp b/source/games/duke/src/gameexec.cpp index 1fb845c9b..64d3ad92a 100644 --- a/source/games/duke/src/gameexec.cpp +++ b/source/games/duke/src/gameexec.cpp @@ -916,7 +916,7 @@ void DoPlayer(bool bSet, int lVar1, int lLabelID, int lVar2, int sActor, int sPl } else { - auto center = ps[iPlayer].sync.actions & SB_CENTERVIEW ? xs_CRoundToInt(ps[iPlayer].horizon.horiz.asbuild() * (9. / gi->playerHorizMax())) : 0; + auto center = ps[iPlayer].sync.actions & SB_CENTERVIEW ? xs_CRoundToInt(ps[iPlayer].horizon.horiz.asq16() * (9. / gi->playerHorizMax())) : 0; SetGameVarID((int)lVar2, center, sActor, sPlayer); } break;