diff options
author | Steph Enders <smenders@gmail.com> | 2022-06-16 16:53:34 -0400 |
---|---|---|
committer | Steph Enders <smenders@gmail.com> | 2022-06-16 16:53:34 -0400 |
commit | 49bb775d4cf9935b0f0d54daa358423ac786c9be (patch) | |
tree | 8a14766eb4c825af7e19da822644e5d1695d0206 /maps/lvl2/dng.map | |
parent | c57ae8c42c1f2f2ed576719c00cff5cf613fe650 (diff) |
Made shortest path alg more efficent
In the previous commit this algo waited until the "success" step came up
in the queue. Now we have the check during the push - and if an hits we
return true from the push_moves fn.
Since we're only interested in the initial move (since we check moves
every frame) we can only return true and then use the current step as
the origin position to diff against the start to get the dx,dy
Diffstat (limited to 'maps/lvl2/dng.map')
0 files changed, 0 insertions, 0 deletions