Please find attached the new version of the patch.
Changed:
- Bumpedybump to trunk.
- Coding style. Updated the comments and moved some declarations to .h files.
- You can now choose how high a heightmap is generated.
Unlike the previous patch I have posted that had this feature the setting is shared with the difficulty settings so changing it will give a warning that the difficulty settings have changed.
When the patch is enabled and you want the standard (15 high) behaviour you should select flat. Else very flat is 3 and Alpinist is 255 (if mapsize and heightmap allows).
Also I did not rearrange the load_heightmap_gui this time other then inserting the dropdown and a few spacers to keep the seed box alligned with its random button.(I did not want to change too much at once.)
Todo:
- Remove the "// heightmap height" comments in genworld_gui.cpp , they are there to remind me to change them also when I will be re-arranging the gui. (if needed)
- Check for the "clear land" error when not having sufficient funds.
- Make may way through the TILE_SIZE occurances in viewport.cpp so I can declare TILE_SIZE as uint in tile_type.h as it should without the game crashing.
- Everything else marked as todo in the patch.
- Reminder to self: Do not forget the warning when resizing the heightmap too much.
ps:
For he who feels like tuning the array to select heightmap height: Look in heightmap.h.
Edit:
Order of words corrected I have

Also tile_type.h != tile_map.h.