From 613fa4c9e4f597ec8fd82aea7fdbedb85ae0f53a Mon Sep 17 00:00:00 2001 From: MajorCooke <paul.growney22@gmail.com> Date: Mon, 20 Jun 2016 16:39:33 -0500 Subject: [PATCH] Fixed: GetDistance was missing the original Z check disabling introduced in commit bd16ccb. --- src/thingdef/thingdef_codeptr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index b0979885a..7a9ac1ce0 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -312,6 +312,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, GetDistance) DVector3 diff = self->Vec3To(target); if (checkz) diff.Z += (target->Height - self->Height) / 2; + else + diff.Z = 0.; ret->SetFloat(diff.Length()); }