Use consistent defaults for reach map settings

This commit is contained in:
Gunter Labes 2025-02-17 16:06:12 +01:00
parent b8c89d92d5
commit b64546da51
No known key found for this signature in database
GPG Key ID: C0C7B971CC910216

View File

@ -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)