mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
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:
parent
a0c298a539
commit
d7a70c67ba
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user