- Duke: Back up rotscrnang if script sets target to new value so we can interpolate the changes.

This commit is contained in:
Mitch Richters 2021-11-06 17:57:37 +11:00
parent 5050947dca
commit 3778327818

View file

@ -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;