Prevent weapon projectile spread fix causing laser sight jitter

This commit is contained in:
Simon 2020-05-29 00:11:08 +01:00
parent 4f3b54e84a
commit 68f41c63e7

View file

@ -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)
{