From 04d20a52c36382feb37aaa2771a36781f02f5b36 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 2 Sep 2022 16:13:37 +1000 Subject: [PATCH] - Duke: Set both `orotscrnang` and `rotscrnang` when being called from a script, since the former is an addition. --- source/games/duke/src/gameexec.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source/games/duke/src/gameexec.cpp b/source/games/duke/src/gameexec.cpp index 226ddfa81..5e2aa45e8 100644 --- a/source/games/duke/src/gameexec.cpp +++ b/source/games/duke/src/gameexec.cpp @@ -710,11 +710,7 @@ void DoPlayer(bool bSet, int lVar1, int lLabelID, int lVar2, DDukeActor* sActor, break; case PLAYER_ROTSCRNANG: - if (bSet) - { - ps[iPlayer].angle.orotscrnang = ps[iPlayer].angle.rotscrnang; - ps[iPlayer].angle.rotscrnang = DAngle::fromBuild(lValue); - } + if (bSet) ps[iPlayer].angle.orotscrnang = ps[iPlayer].angle.rotscrnang = DAngle::fromBuild(lValue); else SetGameVarID(lVar2, ps[iPlayer].angle.rotscrnang.Buildang(), sActor, sPlayer); break;