- fixed: The distance check in CheckIfCloser used the wrong variable.

This commit is contained in:
Christoph Oelckers 2016-11-15 17:41:49 +01:00
parent 4cc7d95ba5
commit 1d006b37c3

View file

@ -35,7 +35,7 @@ extend class Actor
{
if (!targ) return false;
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 && targ.pos.z - pos.z - height < dist)
)