summaryrefslogtreecommitdiff
path: root/src/genworld.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-03-24 23:25:51 +0100
committerPatric Stout <github@truebrain.nl>2021-03-26 12:22:32 +0100
commitf05e2e0d408cfd018d9875855bd28383569481a9 (patch)
tree2f08a052703d6c745935e0abed5e7bb259c94287 /src/genworld.h
parent45c2c29c35afeb4116ff8fb3393ddc67ea1708da (diff)
downloadopenttd-f05e2e0d408cfd018d9875855bd28383569481a9.tar.xz
Feature: allow setting a custom terrain type to define highest peak
At least, TGP will try to reach it. It heavily depends on the map if it is reachable at all. But for sure it will do its atmost to get there!
Diffstat (limited to 'src/genworld.h')
-rw-r--r--src/genworld.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/genworld.h b/src/genworld.h
index 71dae3f36..e6def6944 100644
--- a/src/genworld.h
+++ b/src/genworld.h
@@ -42,6 +42,8 @@ enum TgenSmoothness {
TGEN_SMOOTHNESS_END, ///< Used to iterate.
};
+static const uint CUSTOM_TERRAIN_TYPE_NUMBER_DIFFICULTY = 5; ///< Value for custom terrain type in difficulty settings.
+
static const uint CUSTOM_SEA_LEVEL_NUMBER_DIFFICULTY = 4; ///< Value for custom sea level in difficulty settings.
static const uint CUSTOM_SEA_LEVEL_MIN_PERCENTAGE = 1; ///< Minimum percentage a user can specify for custom sea level.
static const uint CUSTOM_SEA_LEVEL_MAX_PERCENTAGE = 90; ///< Maximum percentage a user can specify for custom sea level.