Unify duplicate Breadth-First-Search traversing of the LayeredPainter and SmoothEleva...
commitd5045611997bc973f5eb7217ee615a7b170f775f
authorelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Thu, 26 Oct 2017 12:37:02 +0000 (26 12:37 +0000)
committerelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Thu, 26 Oct 2017 12:37:02 +0000 (26 12:37 +0000)
tree1c0999bb230e7e5d925121adf1ea69dbbb02a1eb
parent89b63b5d05cf0ba3399c955c814cb52e010eb048
Unify duplicate Breadth-First-Search traversing of the LayeredPainter and SmoothElevationPainter in a new helper function, refs #4805, making it much more comprehensible what each part does.
Document the two classes, the new function and every step of their execution, refs #4831.
Unify SmoothElevationPainter height computation duplication, remove pointless comments, use array functions and the prefix increment operator.

git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@20350 3db68df2-c116-0410-a063-a993310a9797
binaries/data/mods/public/maps/random/rmgen/painter.js