Fixed: GetDistance was missing the original Z check disabling introduced in commit bd16ccb.

This commit is contained in:
MajorCooke 2016-06-20 16:39:33 -05:00 committed by Christoph Oelckers
parent 9df65f73fc
commit 613fa4c9e4

View file

@ -312,6 +312,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, GetDistance)
DVector3 diff = self->Vec3To(target); DVector3 diff = self->Vec3To(target);
if (checkz) if (checkz)
diff.Z += (target->Height - self->Height) / 2; diff.Z += (target->Height - self->Height) / 2;
else
diff.Z = 0.;
ret->SetFloat(diff.Length()); ret->SetFloat(diff.Length());
} }