Add cmtreemap command to plant trees according to a heightmap

This commit is contained in:
dP
2020-07-21 20:34:18 +03:00
parent df12479252
commit 31d0548c1a
4 changed files with 71 additions and 1 deletions

View File

@@ -450,7 +450,7 @@ void FixSlopes()
* @param[in,out] map If not \c nullptr, destination to store the loaded block of image data.
* @return Whether loading was successful.
*/
static bool ReadHeightMap(DetailedFileType dft, const char *filename, uint *x, uint *y, byte **map)
bool ReadHeightMap(DetailedFileType dft, const char *filename, uint *x, uint *y, byte **map)
{
switch (dft) {
default: