summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-03-01 13:35:39 +0100
committerPatric Stout <github@truebrain.nl>2021-03-01 23:17:47 +0100
commitd7a70c67bacef7453ae56e9136c9c16e4b19c314 (patch)
tree9a8ceea9acaa6b3585a15c46bcf01d415f5abb75 /src
parenta0c298a539d9a5ffed2c82b94c04b362c2763465 (diff)
downloadopenttd-d7a70c67bacef7453ae56e9136c9c16e4b19c314.tar.xz
Fix: old snow_line_height had a higher maximum value than could be stored
So any old game made with this setting was overflowing anyway; not really a lot we can do about that now.
Diffstat (limited to 'src')
-rw-r--r--src/table/gameopt_settings.ini3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/table/gameopt_settings.ini b/src/table/gameopt_settings.ini
index 32691c289..b85e11d9c 100644
--- a/src/table/gameopt_settings.ini
+++ b/src/table/gameopt_settings.ini
@@ -149,7 +149,8 @@ var = game_creation.snow_line_height
type = SLE_UINT8
def = DEF_SNOWLINE_HEIGHT * TILE_HEIGHT
min = MIN_SNOWLINE_HEIGHT * TILE_HEIGHT
-max = MAX_SNOWLINE_HEIGHT * TILE_HEIGHT
+# "max" used to be MAX_SNOWLINE_HEIGHT * TILE_HEIGHT, but this would overflow the storage.
+max = UINT8_MAX
to = SLV_22
[SDT_NULL]