mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 11:01:20 +00:00
restore mp timer defaults when game loads (unless specified otherwise)
This commit is contained in:
parent
06a2fc84b8
commit
adb4f15cc1
@ -63,6 +63,12 @@ manager::manager()
|
||||
set_sound_volume(sound_volume());
|
||||
|
||||
set_show_haloes(prefs["show_haloes"] != "no");
|
||||
if(prefs["remember_timer_settings"] != "yes") {
|
||||
prefs.values.erase("mp_countdown_init_time");
|
||||
prefs.values.erase("mp_countdown_reservoir_time");
|
||||
prefs.values.erase("mp_countdown_turn_bonus");
|
||||
prefs.values.erase("mp_countdown_action_bonus");
|
||||
}
|
||||
|
||||
std::vector<std::string> v;
|
||||
v = utils::split(prefs["encountered_units"]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user