mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- Cleaned up leftovers.
This commit is contained in:
parent
b51bbf66b0
commit
823edc4a69
1 changed files with 0 additions and 3 deletions
|
@ -6024,9 +6024,6 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckProximity)
|
||||||
//[MC]Make sure it's in range and respect the desire for Z or not. The function forces it to use
|
//[MC]Make sure it's in range and respect the desire for Z or not. The function forces it to use
|
||||||
//Z later for ensuring CLOSEST and FARTHEST flags are respected perfectly.
|
//Z later for ensuring CLOSEST and FARTHEST flags are respected perfectly.
|
||||||
//Ripped from sphere checking in A_RadiusGive (along with a number of things).
|
//Ripped from sphere checking in A_RadiusGive (along with a number of things).
|
||||||
|
|
||||||
fixedvec3 diff = ref->Vec3To(mo);
|
|
||||||
diff.z += (ref->height - mo->height) / 2;
|
|
||||||
if ((flags & CPXF_NODISTANCE) || (ref->AproxDistance(mo) < distance &&
|
if ((flags & CPXF_NODISTANCE) || (ref->AproxDistance(mo) < distance &&
|
||||||
((flags & CPXF_NOZ) ||
|
((flags & CPXF_NOZ) ||
|
||||||
((ref->Z() > mo->Z() && ref->Z() - mo->Top() < distance) ||
|
((ref->Z() > mo->Z() && ref->Z() - mo->Top() < distance) ||
|
||||||
|
|
Loading…
Reference in a new issue