Prevent view pitching weirdly at times when using AllowPitchOverride

This commit is contained in:
Simon 2023-06-28 20:08:31 +01:00
parent d26411d195
commit 0848094228
3 changed files with 6 additions and 3 deletions

View file

@ -3120,7 +3120,8 @@ HORIZONLY:
}
else if (SyncInput())
{
p->GetActor()->spr.Angles.Pitch += GetPlayerHorizon(snum);
//Set pitch directly
p->GetActor()->spr.Angles.Pitch = GetPlayerHorizon(snum);
}
p->Angles.doPitchKeys(&p->sync);

View file

@ -3926,7 +3926,8 @@ HORIZONLY:
}
else if (SyncInput())
{
p->GetActor()->spr.Angles.Pitch += GetPlayerHorizon(snum);
//Set pitch directly
p->GetActor()->spr.Angles.Pitch = GetPlayerHorizon(snum);
}
p->Angles.doPitchKeys(&p->sync);

View file

@ -2465,7 +2465,8 @@ sectdone:
if (SyncInput())
{
pPlayer->pActor->spr.Angles.Pitch += DAngle::fromDeg(PlayerList[nPlayer].input.horz);
//Set pitch directly
pPlayer->pActor->spr.Angles.Pitch = DAngle::fromDeg(PlayerList[nPlayer].input.horz);
}
pPlayer->Angles.doPitchKeys(&PlayerList[nLocalPlayer].input);