From b64546da5152f7defe5f1934da85a49b600ffed8 Mon Sep 17 00:00:00 2001 From: Gunter Labes Date: Mon, 17 Feb 2025 16:06:12 +0100 Subject: [PATCH] Use consistent defaults for reach map settings --- src/preferences/preferences.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/preferences/preferences.cpp b/src/preferences/preferences.cpp index 7351c3a33d8..c1890e43972 100644 --- a/src/preferences/preferences.cpp +++ b/src/preferences/preferences.cpp @@ -602,7 +602,7 @@ void prefs::set_reach_map_enemy_color(const std::string& color_id) { int prefs::reach_map_border_opacity() { - return preferences_[prefs_list::reach_map_border_opacity].to_int(100); // 100% by default + return preferences_[prefs_list::reach_map_border_opacity].to_int(game_config::reach_map_border_opacity); } void prefs::set_reach_map_border_opacity(const int new_opacity) @@ -612,7 +612,7 @@ void prefs::set_reach_map_border_opacity(const int new_opacity) int prefs::reach_map_tint_opacity() { - return preferences_[prefs_list::reach_map_tint_opacity].to_int(100); // 100% by default + return preferences_[prefs_list::reach_map_tint_opacity].to_int(game_config::reach_map_tint_opacity); } void prefs::set_reach_map_tint_opacity(const int new_opacity)