summaryrefslogtreecommitdiff
path: root/src/tgp.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-03-24 10:29:01 +0100
committerPatric Stout <github@truebrain.nl>2021-03-26 12:22:32 +0100
commit422e132845255264314cd79aa14361d0df0905d7 (patch)
tree21452e883fa2a1bec4280625fb0ce7a6dfb168b8 /src/tgp.h
parent1a1049bc0db4e29402e950e56f3a6873c1f5a0ab (diff)
downloadopenttd-422e132845255264314cd79aa14361d0df0905d7.tar.xz
Feature: auto-detect map height limit based on generated map
This opens up the true power of the TGP terrain generator, as it is no longer constrainted by an arbitrary low map height limit, especially for extreme terrain types. In other words: on a 1kx1k map with "Alpinist" terrain type, the map is now really hilly with default settings. People can still manually limit the map height if they so wish, and after the terrain generation the limit is stored in the savegame as if the user set it. Cheats still allow you to change this value.
Diffstat (limited to 'src/tgp.h')
-rw-r--r--src/tgp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tgp.h b/src/tgp.h
index 8d8d97489..e773c6ff2 100644
--- a/src/tgp.h
+++ b/src/tgp.h
@@ -11,5 +11,6 @@
#define TGP_H
void GenerateTerrainPerlin();
+uint GetEstimationTGPMapHeight();
#endif /* TGP_H */