ID:2893482
 
Resolved
Regression: get_dist() was broken, returning infinity when it should have returned a positive number.
BYOND Version:515.1617
Operating System:Windows 11 Pro
Web Browser:Chrome 117.0.0.0
Applies to:Dream Daemon
Status: Resolved (515.1619)

This issue has been resolved.
Descriptive Problem Summary:
get_dist() returns only 0 or infinite now instead of the actual distance between atoms
Numbered Steps to Reproduce Problem:
call get_dist()
See that it only returns 0 or infinite
Code Snippet (if applicable) to Reproduce Problem:
atom
icon = 'icons.dmi'

mob
icon_state = "mob"


turf
icon_state = "obj"
verb
get_dist_test()
set name = "Display get_dist() is busted"
set src in oview(5)
usr << "[get_dist(src, usr)]"


Expected Results:
You get a number outside of infinite, such as 1 2 or 3

Actual Results:
You get infinite or 0 every time

Does the problem occur: 100% of the time

When does the problem NOT occur?
any version below 515.1617

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? 515.1616 and below

Workarounds:
No real workaround

Lummox JR resolved issue with message:
Regression: get_dist() was broken, returning infinity when it should have returned a positive number.