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.
This commit is contained in:
Patric Stout 2021-03-01 13:35:39 +01:00 committed by Patric Stout
parent a0c298a539
commit d7a70c67ba

View File

@ -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]