mirror of
https://github.com/DrBeef/QuestZDoom.git
synced 2025-04-24 18:22:02 +00:00
Prevent weapon projectile spread fix causing laser sight jitter
This commit is contained in:
parent
4f3b54e84a
commit
68f41c63e7
1 changed files with 2 additions and 2 deletions
|
@ -4547,8 +4547,8 @@ AActor *P_LineAttack(AActor *t1, DAngle angle, double distance,
|
|||
|
||||
//Include pitch delta here
|
||||
DAngle pitchDelta;
|
||||
pitchDelta.Degrees = (pitch == 0) ? 0.0 : (t1->player->mo->PrevAngles.Pitch - pitch).Degrees;
|
||||
direction = t1->player->mo->AttackDir(t1, angle, t1->player->mo->PrevAngles.Pitch - pitch);
|
||||
pitchDelta = (t1->player->mo->Angles.Pitch - pitch);
|
||||
direction = t1->player->mo->AttackDir(t1, angle, pitchDelta);
|
||||
}
|
||||
else if (flags & LAF_ABSPOSITION)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue