1
0
Fork 0

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.
pull/8795/head
Patric Stout 2021-03-01 13:35:39 +01:00 committed by Patric Stout
parent a0c298a539
commit d7a70c67ba
1 changed files with 2 additions and 1 deletions

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]