From 3d806d6a657ec5d81069523861f6b41e19b4e7f8 Mon Sep 17 00:00:00 2001 From: Tyler Trahan Date: Thu, 14 Aug 2025 08:25:16 -0400 Subject: [PATCH] Fix: 'Map edges' GUI buttons shouldn't initialize with water on northeast edge (#14514) --- src/genworld_gui.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp index 5978060350..a85480e8eb 100644 --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -833,7 +833,11 @@ struct GenerateLandscapeWindow : public Window { break; case WID_GL_BORDERS_RANDOM: - _settings_newgame.game_creation.water_borders = (_settings_newgame.game_creation.water_borders == BorderFlag::Random) ? BorderFlag{} : BorderFlag::Random; + if (_settings_newgame.game_creation.water_borders == BorderFlag::Random) { + _settings_newgame.game_creation.water_borders.Reset(); + } else { + _settings_newgame.game_creation.water_borders = BorderFlag::Random; + } SndClickBeep(); this->InvalidateData(); break;