editor: don't write default values when saving a scenario
(cherry-picked from commit 15c331281f
)
This commit is contained in:
parent
450092033a
commit
40230ca344
1 changed files with 4 additions and 0 deletions
|
@ -481,6 +481,10 @@ config map_context::to_config()
|
|||
|
||||
scenario.append(tod_manager_->to_config());
|
||||
scenario.remove_attribute("turn_at");
|
||||
scenario.remove_attribute("it_is_a_new_turn");
|
||||
if(scenario["turns"].to_int() == -1) {
|
||||
scenario.remove_attribute("turns");
|
||||
}
|
||||
|
||||
scenario["map_data"] = map_.write();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue