- Duke: Set both orotscrnang and rotscrnang when being called from a script, since the former is an addition.

This commit is contained in:
Mitchell Richters 2022-09-02 16:13:37 +10:00 committed by Christoph Oelckers
parent 681bd640ed
commit 04d20a52c3

View file

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