Skip to content

Commit

Permalink
Rename [unit_type_fix] to [modify_unit_type] for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentarctagon committed Oct 4, 2019
1 parent e3cffa8 commit f05f811
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/play_controller.cpp
Expand Up @@ -97,7 +97,7 @@ static void copy_persistent(const config& src, config& dst)

static const std::set<std::string> tags {
"terrain_graphics",
"unit_type_fix",
"modify_unit_type",
"lua"};

for (const std::string& attr : attrs)
Expand Down Expand Up @@ -168,8 +168,8 @@ play_controller::play_controller(const config& level, saved_game& state_of_game,
{
copy_persistent(level, level_);

for(const config& unit_type_fix : level_.child_range("unit_type_fix")) {
unit_types.apply_scenario_fix(unit_type_fix);
for(const config& modify_unit_type : level_.child_range("modify_unit_type")) {
unit_types.apply_scenario_fix(modify_unit_type);
}
resources::controller = this;
resources::persist = &persist_;
Expand Down
6 changes: 3 additions & 3 deletions src/saved_game.cpp
Expand Up @@ -341,9 +341,9 @@ void saved_game::load_mod(const std::string& type, const std::string& id, size_t
this->starting_point_.add_child_at_total("lua", modlua, pos++);
}

// Copy unit_type_fix
for(const config& modlua : cfg.child_range("unit_type_fix")) {
this->starting_point_.add_child_at_total("unit_type_fix", modlua, pos++);
// Copy modify_unit_type
for(const config& modlua : cfg.child_range("modify_unit_type")) {
this->starting_point_.add_child_at_total("modify_unit_type", modlua, pos++);
}

// Copy load_resource
Expand Down

0 comments on commit f05f811

Please sign in to comment.