add deprecation message for map_file

This commit is contained in:
Pentarctagon 2023-07-20 14:20:13 -05:00
parent 7223833ccc
commit 5df54c8ba2

View file

@ -489,6 +489,7 @@ void saved_game::expand_map_file(config& scenario)
std::string map_data = filesystem::read_map(scenario["map_file"]);
if(map_data.find("map_data") != std::string::npos) {
// we have a scenario, generated by the editor
deprecated_message("map_file cfg", DEP_LEVEL::FOR_REMOVAL, "1.19", "Providing a cfg file to the map_file attribute is deprecated. Use map_file for .map files and include_file for cfg files.");
config map_data_cfg;
read(map_data_cfg, map_data);
inherit_scenario(scenario, map_data_cfg);