mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
Fixed: GetDistance was missing the original Z check disabling introduced in commit bd16ccb
.
This commit is contained in:
parent
9df65f73fc
commit
613fa4c9e4
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue