summaryrefslogtreecommitdiff
path: root/src/genworld.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2015-04-11 18:45:18 +0000
committeralberth <alberth@openttd.org>2015-04-11 18:45:18 +0000
commita91f74dbb3513f77947decc514374c5a563999d3 (patch)
tree9e80dd8cd566a7d0c8db1a76c86d2d391dc8741d /src/genworld.h
parent9db21f64892104ca903397751d2b274572f4c58e (diff)
downloadopenttd-a91f74dbb3513f77947decc514374c5a563999d3.tar.xz
(svn r27231) -Codechange: Replace magic numbers for the smoothness setting (chillcore)
Diffstat (limited to 'src/genworld.h')
-rw-r--r--src/genworld.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/genworld.h b/src/genworld.h
index 267335423..ea3faa15f 100644
--- a/src/genworld.h
+++ b/src/genworld.h
@@ -32,6 +32,17 @@ enum GenWorldMode {
GWM_HEIGHTMAP = 3, ///< Generate a newgame from a heightmap
};
+/** Smoothness presets. */
+enum TgenSmoothness {
+ TGEN_SMOOTHNESS_BEGIN, ///< First smoothness value.
+ TGEN_SMOOTHNESS_VERY_SMOOTH = TGEN_SMOOTHNESS_BEGIN, ///< Smoothness preset 'very smooth'.
+ TGEN_SMOOTHNESS_SMOOTH, ///< Smoothness preset 'smooth'.
+ TGEN_SMOOTHNESS_ROUGH, ///< Smoothness preset 'rough'.
+ TGEN_SMOOTHNESS_VERY_ROUGH, ///< Smoothness preset 'very rough'.
+
+ TGEN_SMOOTHNESS_END, ///< Used to iterate.
+};
+
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.