mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
- fixed: The distance check in CheckIfCloser used the wrong variable.
This commit is contained in:
parent
4cc7d95ba5
commit
1d006b37c3
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ extend class Actor
|
||||||
{
|
{
|
||||||
if (!targ) return false;
|
if (!targ) return false;
|
||||||
return
|
return
|
||||||
(Distance2D(target) < dist && (noz ||
|
(Distance2D(targ) < dist && (noz ||
|
||||||
((pos.z > targ.pos.z && pos.z - targ.pos.z - targ.height < dist) ||
|
((pos.z > targ.pos.z && pos.z - targ.pos.z - targ.height < dist) ||
|
||||||
(pos.z <= targ.pos.z && targ.pos.z - pos.z - height < dist)
|
(pos.z <= targ.pos.z && targ.pos.z - pos.z - height < dist)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue