src/heightmap.cpp
changeset 7036 9f23930e7ded
parent 6573 7624f942237f
child 6872 1c4a4a609f85
child 8617 931e0970d509
child 9723 eee46cb39750
--- a/src/heightmap.cpp	Fri Apr 27 21:27:02 2007 +0000
+++ b/src/heightmap.cpp	Fri Apr 27 21:29:36 2007 +0000
@@ -275,6 +275,13 @@
 	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) */