wheybags / freeablo

[ARCHIVED] Modern reimplementation of the Diablo 1 game engine
GNU General Public License v3.0
2.16k stars 193 forks source link

better path finding #382

Closed akuskis closed 6 years ago

akuskis commented 6 years ago

Take geometry into account (diagonal is longer then side in right-angled triangle). pathFind does not change goal any more. Goal can be taken from result array.

akuskis commented 6 years ago

Test for this behavior and explanation can be found around: #380

wheybags commented 6 years ago

This code is the same changes as in the other PR right? If so, we can close this one and just merge them together.