From 37783278187b7f8be94fffba637bfc477d79d136 Mon Sep 17 00:00:00 2001 From: Mitch Richters Date: Sat, 6 Nov 2021 17:57:37 +1100 Subject: [PATCH] - Duke: Back up `rotscrnang` if script sets target to new value so we can interpolate the changes. --- source/games/duke/src/gameexec.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/games/duke/src/gameexec.cpp b/source/games/duke/src/gameexec.cpp index c388585d2..a713e66ae 100644 --- a/source/games/duke/src/gameexec.cpp +++ b/source/games/duke/src/gameexec.cpp @@ -692,7 +692,11 @@ void DoPlayer(bool bSet, int lVar1, int lLabelID, int lVar2, DDukeActor* sActor, break; case PLAYER_ROTSCRNANG: - if (bSet) ps[iPlayer].angle.rotscrnang = buildang(lValue); + if (bSet) + { + ps[iPlayer].angle.orotscrnang = ps[iPlayer].angle.rotscrnang; + ps[iPlayer].angle.rotscrnang = buildang(lValue); + } else SetGameVarID(lVar2, ps[iPlayer].angle.rotscrnang.asbuild(), sActor, sPlayer); break;