Improve random map script performance by using squared distance where possible, refs...
commitdc37bcde02f4cf14babf1cb217fa309543b836d8
authorelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sat, 3 Mar 2018 13:46:57 +0000 (3 13:46 +0000)
committerelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sat, 3 Mar 2018 13:46:57 +0000 (3 13:46 +0000)
treee8d036db0b009042fff35067fe4e106c75e3e097
parent1984142e97f2db3f4dce701bf47e4d2c33a98700
Improve random map script performance by using squared distance where possible, refs #5011.

RandomPathPlacer.js diff proposed and reviewed by FeXoR

git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@21425 3db68df2-c116-0410-a063-a993310a9797
binaries/data/mods/public/maps/random/red_sea.js
binaries/data/mods/public/maps/random/rmgen-common/player.js
binaries/data/mods/public/maps/random/rmgen/Group.js
binaries/data/mods/public/maps/random/rmgen/Object.js
binaries/data/mods/public/maps/random/rmgen/placer/centered/DiskPlacer.js
binaries/data/mods/public/maps/random/rmgen/placer/noncentered/RandomPathPlacer.js