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
1 changed files with 2 additions and 0 deletions

View File

@ -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());
}