ID:2194523
 
Resolved
bounds_dist() now returns an infinite value if either object has a z coordinate of 0, or their z coordinates are not the same.
BYOND Version:511.1364
Operating System:Windows 7 Ultimate 64-bit
Web Browser:Chrome 55.0.2883.87
Applies to:Dream Daemon
Status: Resolved (511.1367)

This issue has been resolved.
bounds_dist() doesn't check to see if the object is on the same Z-level as its target before calculating the distance between the bounding boxes.

bounds_dist() should eject early returning 1#INF if:

either object's z variable is 0 (the object is in the contents of another object, or not on the map)

the objects' z variables are not the same.

Currently, in either of these cases, bounds_dist returns as though the object were at 1,1

I can't believe nobody has reported this.
This makes good sense, and it should be an easy fix for the next build.
Lummox JR resolved issue with message:
bounds_dist() now returns an infinite value if either object has a z coordinate of 0, or their z coordinates are not the same.