Skip to content

Commit

Permalink
Check loaded mapgen for being used at all (#37425)
Browse files Browse the repository at this point in the history
  • Loading branch information
BevapDin authored and ZhilkinSerg committed Apr 1, 2020
1 parent 9a46787 commit 8aa6c7a
Show file tree
Hide file tree
Showing 4 changed files with 266 additions and 249 deletions.
10 changes: 0 additions & 10 deletions src/map_extras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2880,9 +2880,6 @@ void map_extra::load( const JsonObject &jo, const std::string & )
optional( jo, was_loaded, "autonote", autonote, false );
}

extern std::map<std::string, std::vector<std::shared_ptr<mapgen_function>> > oter_mapgen;
extern std::map<std::string, std::vector<std::unique_ptr<mapgen_function_json_nested>> >
nested_mapgen;
extern std::map<std::string, std::vector<std::unique_ptr<update_mapgen_function_json>> >
update_mapgen;

Expand All @@ -2898,13 +2895,6 @@ void map_extra::check() const
break;
}
case map_extra_method::mapgen: {
/*
const auto fmapit = oter_mapgen.find( generator_id );
const oter_id extra_oter( generator_id );
if( ( fmapit == oter_mapgen.end() || !fmapit->second.empty() ) && !extra_oter.is_valid() ) {
debugmsg( "invalid mapgen function (%s) defined for map extra (%s)", generator_id, id.str() );
}
*/
break;
}
case map_extra_method::update_mapgen: {
Expand Down
Loading

0 comments on commit 8aa6c7a

Please sign in to comment.