mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 18:23:33 +00:00
Save each team's DSU setting.
This is for consistency when loading a (mid-turn) game, as the undo stack may have been built with shroud updates delayed.
This commit is contained in:
parent
d9e8b6db34
commit
699a6ae1f3
@ -315,6 +315,7 @@ void team::build(const config &cfg, const gamemap& map, int gold)
|
||||
fog_.read(cfg["fog_data"]);
|
||||
shroud_.set_enabled(cfg["shroud"].to_bool());
|
||||
shroud_.read(cfg["shroud_data"]);
|
||||
auto_shroud_updates_ = cfg["auto_shroud"].to_bool(auto_shroud_updates_);
|
||||
|
||||
LOG_NG << "team::team(...): team_name: " << info_.team_name
|
||||
<< ", shroud: " << uses_shroud() << ", fog: " << uses_fog() << ".\n";
|
||||
@ -357,6 +358,7 @@ void team::build(const config &cfg, const gamemap& map, int gold)
|
||||
void team::write(config& cfg) const
|
||||
{
|
||||
info_.write(cfg);
|
||||
cfg["auto_shroud"] = auto_shroud_updates_;
|
||||
cfg["shroud"] = uses_shroud();
|
||||
cfg["fog"] = uses_fog();
|
||||
cfg["gold"] = gold_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user