mirror of https://github.com/OpenTTD/OpenTTD
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
parent
a0c298a539
commit
d7a70c67ba
|
@ -149,7 +149,8 @@ var = game_creation.snow_line_height
|
||||||
type = SLE_UINT8
|
type = SLE_UINT8
|
||||||
def = DEF_SNOWLINE_HEIGHT * TILE_HEIGHT
|
def = DEF_SNOWLINE_HEIGHT * TILE_HEIGHT
|
||||||
min = MIN_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
|
to = SLV_22
|
||||||
|
|
||||||
[SDT_NULL]
|
[SDT_NULL]
|
||||||
|
|
Loading…
Reference in New Issue