diff options
author | rubidium <rubidium@openttd.org> | 2007-04-27 21:29:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-04-27 21:29:36 +0000 |
commit | e1057864d8254e35854918b2b60db6dc43025ecf (patch) | |
tree | 8790ce91b35114408651cb1421df817c7c9e66cc /src/heightmap.cpp | |
parent | 75ba8f4489bce6ff017fd45bd387c87b37f7e8d4 (diff) | |
download | openttd-e1057864d8254e35854918b2b60db6dc43025ecf.tar.xz |
(svn r9729) -Documentation: add some documentation in various places
Diffstat (limited to 'src/heightmap.cpp')
-rw-r--r-- | src/heightmap.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/heightmap.cpp b/src/heightmap.cpp index 3d5ddb499..360127dc5 100644 --- a/src/heightmap.cpp +++ b/src/heightmap.cpp @@ -275,6 +275,13 @@ static bool ReadHeightmapBMP(char *filename, uint *x, uint *y, byte **map) return true; } +/** + * Converts a given grayscale map to something that fits in OTTD map system + * and create a map of that data. + * @param img_width the with of the image in pixels/tiles + * @param img_height the height of the image in pixels/tiles + * @param map the input map + */ static void GrayscaleToMapHeights(uint img_width, uint img_height, byte *map) { /* Defines the detail of the aspect ratio (to avoid doubles) */ |