mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
do not highlight crosshair when shotting over/under target with direct aiming (#1115)
This commit is contained in:
parent
8d2fcdbad0
commit
2622133154
@ -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
|
// 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;
|
topslope = 100*FRACUNIT/160;
|
||||||
bottomslope = -100*FRACUNIT/160;
|
bottomslope = -100*FRACUNIT/160;
|
||||||
|
}
|
||||||
|
|
||||||
attackrange = distance;
|
attackrange = distance;
|
||||||
linetarget = NULL;
|
linetarget = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user