mirror of
https://github.com/DrBeef/Raze.git
synced 2025-03-23 01:30:58 +00:00
Prevent view pitching weirdly at times when using AllowPitchOverride
This commit is contained in:
parent
d26411d195
commit
0848094228
3 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue