FS#2114 - Better map borders
This patch changes the way how the TGP calculates map borders to make them smoother fit with the terrain and look more natural.
Most functions in tgp.cpp had to be altered to make this possible. The file now in my opinion much better follows the coding style. The alternations to other files are minimal (only one integer changed in unmovable_cmd.cpp).
The patch works for all map sizes and settings (the 64*64 maps are very similiar to those created with TGP though).
See this thread for more info and screenshots:
The attached patch file is against r13631.
This task depends upon