summaryrefslogtreecommitdiff
path: root/src/cheat_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-02-14 21:55:30 +0000
committerfrosch <frosch@openttd.org>2015-02-14 21:55:30 +0000
commit310258f2834693e2794c1e6fbe88ba9cca2af77a (patch)
tree0021d307f253de199af72928dc6ab93796f87f4b /src/cheat_gui.cpp
parent64e943d32af130641380a2099b494e8b2a9b0f43 (diff)
downloadopenttd-310258f2834693e2794c1e6fbe88ba9cca2af77a.tar.xz
(svn r27151) -Add: Allow changing max heightlevel in scenario editor.
Diffstat (limited to 'src/cheat_gui.cpp')
-rw-r--r--src/cheat_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp
index 398bef00a..e252912c3 100644
--- a/src/cheat_gui.cpp
+++ b/src/cheat_gui.cpp
@@ -125,7 +125,8 @@ static int32 ClickChangeDateCheat(int32 p1, int32 p2)
* @return New value (or unchanged old value) of the maximum
* allowed heightlevel value.
*/
-static int32 ClickChangeMaxHlCheat(int32 p1, int32 p2) {
+static int32 ClickChangeMaxHlCheat(int32 p1, int32 p2)
+{
p1 = Clamp(p1, MIN_MAX_HEIGHTLEVEL, MAX_MAX_HEIGHTLEVEL);
/* Check if at least one mountain on the map is higher than the new value.