From 1d006b37c3a96f7ba05ceb6268f6430c6734201a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 15 Nov 2016 17:41:49 +0100 Subject: [PATCH] - fixed: The distance check in CheckIfCloser used the wrong variable. --- wadsrc/static/zscript/actor_checks.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/actor_checks.txt b/wadsrc/static/zscript/actor_checks.txt index 806539753..3ad4255d7 100644 --- a/wadsrc/static/zscript/actor_checks.txt +++ b/wadsrc/static/zscript/actor_checks.txt @@ -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) )