Move landscape generation functions from misc.js to gaia_terrain.js, refs #4804.
commit16ff956ecdf6c989153990aedf6ec4b18d373d7c
authorelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sun, 5 Nov 2017 13:56:21 +0000 (5 13:56 +0000)
committerelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sun, 5 Nov 2017 13:56:21 +0000 (5 13:56 +0000)
tree319a6cf8d20c8404e267cb5d754191e284303159
parentf43e2965ed4455562456d3c5e2f55433fe956b22
Move landscape generation functions from misc.js to gaia_terrain.js, refs #4804.

Rename passageMaker to createShallowsPassage to avoid confusion with straightPassageMaker aka PassMaker from Corsica & Sardinia and Pyrenean Sierra.
Remove TILE_CENTERED_HEIGHT_MAP operations in that function from rP12641 that don't do anything.
Add infinite loop protection to getTIPIADBON.
Remove unneeded parentheses, braces, redundancy, whitespace issues, use early return and merge consecutive if-statements with a logical or in these functions.

git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@20410 3db68df2-c116-0410-a063-a993310a9797
binaries/data/mods/public/maps/random/english_channel.js
binaries/data/mods/public/maps/random/lorraine_plain.js
binaries/data/mods/public/maps/random/rmgen/gaia_terrain.js
binaries/data/mods/public/maps/random/rmgen/misc.js
binaries/data/mods/public/maps/random/sahel_watering_holes.js
binaries/data/mods/public/maps/random/unknown.js
binaries/data/mods/public/maps/random/unknown_land.js
binaries/data/mods/public/maps/random/unknown_nomad.js