get_steps_to() is bugged. 100% When using it to pathfind diagonally from 1,1 to 10,10 or 10,1 to 1,10 or anything that's 100% diagonal.
Numbered Steps to Reproduce Problem:
Create a blank project and a turf.dmi file with a blank white tile
Code Snippet (if applicable) to Reproduce Problem:
atom/icon='turf.dmi'
mob/Login()
..()
loc = locate(1,1,1)
color = "#0F0"
turf/Click()
ClearMap()
var list/steps = get_steps_to(usr,src,0)
var turf/turf = usr.loc
for(var/direction in steps)
turf = get_step(turf,direction)
turf.color = "#F00"
turf/icon = 'turf.dmi'
proc/ClearMap()
for(var/turf/t)
t.color = null
Expected Results:
It should color the path 100% of the time.
Actual Results:
Sometimes the returns path is incorrect.
Clicking 3,5 from 1,1
![](https://i.imgur.com/fU9z2p7.png)
When clicking the tile at 10,10 it doesn't seem to get the correct results.
Seems to only be taking a few steps.
![](https://i.imgur.com/yvnc91q.png)