do not highlight crosshair when shotting over/under target with direct aiming (#1115)

This commit is contained in:
Fabian Greffrath 2023-06-24 17:21:52 +02:00 committed by GitHub
parent 8d2fcdbad0
commit 2622133154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1672,8 +1672,15 @@ fixed_t P_AimLineAttack(mobj_t *t1,angle_t angle,fixed_t distance,int mask)
// can't shoot outside view angles
if (t1->player && CRITICAL(direct_vertical_aiming))
{
bottomslope = (topslope = PLAYER_SLOPE(t1->player) + 1) - 2;
}
else
{
topslope = 100*FRACUNIT/160;
bottomslope = -100*FRACUNIT/160;
}
attackrange = distance;
linetarget = NULL;