From d7a70c67bacef7453ae56e9136c9c16e4b19c314 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Mon, 1 Mar 2021 13:35:39 +0100 Subject: 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. --- src/table/gameopt_settings.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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] -- cgit v1.2.3-54-g00ecf