diff --git a/src/config.c b/src/config.c index 5dd2b18a75..3a451e6e01 100644 --- a/src/config.c +++ b/src/config.c @@ -275,6 +275,9 @@ void config_apply_to_old_addresses() RCT2_GLOBAL(RCT2_ADDRESS_CONFIG_CONSTRUCTION_MARKER, uint8) = gGeneral_config.construction_marker_colour; RCT2_GLOBAL(RCT2_ADDRESS_CONFIG_SOUND_QUALITY, sint8) = gSound_config.sound_quality; RCT2_GLOBAL(RCT2_ADDRESS_CONFIG_SOUND_SW_BUFFER, sint8) = gSound_config.forced_software_buffering; + RCT2_GLOBAL(RCT2_ADDRESS_CONFIG_HEIGHT_MARKERS, sint16) = (gGeneral_config.measurement_format + 1) * 256; + if (gGeneral_config.show_height_as_units) + RCT2_GLOBAL(RCT2_ADDRESS_CONFIG_HEIGHT_MARKERS, sint16) = 0; int configFlags = 0; if (gGeneral_config.always_show_gridlines) diff --git a/src/windows/options.c b/src/windows/options.c index 33a926693c..216f3899b0 100644 --- a/src/windows/options.c +++ b/src/windows/options.c @@ -791,7 +791,7 @@ static void window_options_show_dropdown(rct_window *w, rct_widget *widget, int static void window_options_update_height_markers() { RCT2_GLOBAL(RCT2_ADDRESS_CONFIG_HEIGHT_MARKERS, uint16) = gGeneral_config.show_height_as_units ? - 0 : (gGeneral_config.show_height_as_units + 1) * 256; + 0 : (gGeneral_config.measurement_format + 1) * 256; config_save(); gfx_invalidate_screen(); }