Unify the two copies of the custom dock placement logic on Hellas and Pompeii, refs...
commite7e83948bf951ba3db0fe809888369d3e240740c
authorelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sun, 4 Mar 2018 20:06:15 +0000 (4 20:06 +0000)
committerelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sun, 4 Mar 2018 20:06:15 +0000 (4 20:06 +0000)
tree0527017f3a90468a31cb4ca563012de11d328645
parent2d5923f6791e0c827189be0791304f98deae7d99
Unify the two copies of the custom dock placement logic on Hellas and Pompeii, refs #4805.

Extend it to only place docks where the according body of water has a minimum size, fixes #5065.
Compute the dock angle similar to GetDockAngle from Commands.js (as the previous angle computation is wrong if the large body of water doesn't lie in that direction).

git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@21433 3db68df2-c116-0410-a063-a993310a9797
binaries/data/mods/public/maps/random/hellas.js
binaries/data/mods/public/maps/random/pompeii.js
binaries/data/mods/public/maps/random/rmgen-common/gaia_entities.js