Fix enabling map edge mode setting when void edge tiles were not flat

This commit is contained in:
Jonathan G Rennison
2024-01-13 13:33:01 +00:00
parent 8ae1587987
commit 55683c4350
3 changed files with 36 additions and 10 deletions

View File

@@ -14,6 +14,7 @@ static bool CheckMaxHeightLevel(int32_t &new_value);
static bool CheckFreeformEdges(int32_t &new_value);
static void UpdateFreeformEdges(int32_t new_value);
static bool CheckMapEdgeMode(int32_t &new_value);
static void MapEdgeModeChanged(int32_t new_value);
static void ClimateThresholdModeChanged(int32_t new_value);
static void PublicRoadsSettingChange(int32_t new_value);
static void MarkAllViewportsDirty(int32_t new_value);
@@ -944,7 +945,7 @@ str = STR_CONFIG_SETTING_MAP_EDGE_MODE
strhelp = STR_CONFIG_SETTING_MAP_EDGE_MODE_HELPTEXT
strval = STR_CONFIG_SETTING_MAP_EDGE_MODE_DEFAULT
pre_cb = CheckMapEdgeMode
post_cb = MarkAllViewportsDirty
post_cb = MapEdgeModeChanged
cat = SC_ADVANCED
[SDT_VAR]