mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-20 18:42:17 +00:00
- fixed autoaiming for unranged attacks.
The abort condition for the extended checks must completely stop any further processing but the check for this was missing.
(cherry picked from commit 60b6dbadb2
)
This commit is contained in:
parent
f70715e25a
commit
a8c0e67b21
1 changed files with 2 additions and 0 deletions
|
@ -4280,6 +4280,7 @@ struct aim_t
|
|||
thingtoppitch = -VecToAngle(exitdist, th->Top() - shootz);
|
||||
if (thingtoppitch > bottompitch) continue;
|
||||
}
|
||||
else continue; // shot over the thing
|
||||
}
|
||||
else continue; // shot over the thing
|
||||
}
|
||||
|
@ -4298,6 +4299,7 @@ struct aim_t
|
|||
thingbottompitch = -VecToAngle(exitdist, th->Z() - shootz);
|
||||
if (thingbottompitch < toppitch) continue;
|
||||
}
|
||||
else continue; // shot over the thing
|
||||
}
|
||||
continue; // shot under the thing
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue