[Ohrrpgce] SVN: teeemcee/9051 pathfinding nodes dist_squared was calculated without considering wrappi

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Tue Jul 18 09:16:00 PDT 2017


teeemcee
2017-07-18 09:16:00 -0700 (Tue, 18 Jul 2017)
335
pathfinding nodes dist_squared was calculated without considering wrapping maps. And more changes:

-renamed dist_squared to cost_after_squared
-renamed/replaced xypair_wrapping_manhattan_distance with xypair_wrapped_distance,
 which calculates both L1 (Manhattan) and L2 (squared) distances at once;
 faster, simpler and more correct.
---
U   wip/game.bas
U   wip/pathfinding.bas
U   wip/pathfinding.bi


More information about the Ohrrpgce mailing list