mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +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);
|
||||
if (checkz)
|
||||
diff.Z += (target->Height - self->Height) / 2;
|
||||
else
|
||||
diff.Z = 0.;
|
||||
|
||||
ret->SetFloat(diff.Length());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue