mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-15 17:54:57 +00:00
Use consistent defaults for reach map settings
This commit is contained in:
parent
b8c89d92d5
commit
b64546da51
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user