mp_create_game: Use "map_data" if already set in preference to "map_file".
https://github.com/wesnoth/wesnoth/pull/4407#issuecomment-537091937
This commit is contained in:
parent
9f506232bd
commit
eccfba6124
1 changed files with 1 additions and 1 deletions
|
@ -708,7 +708,7 @@ void mp_create_game::update_details(window& win)
|
|||
create_engine_.get_state().classification().campaign = "";
|
||||
|
||||
find_widget<stacked_widget>(&win, "minimap_stack", false).select_layer(0);
|
||||
const std::string map_data = current_scenario->data()["map_file"].empty()
|
||||
const std::string map_data = !current_scenario->data()["map_data"].empty()
|
||||
? current_scenario->data()["map_data"]
|
||||
: filesystem::read_map(current_scenario->data()["map_file"]);
|
||||
find_widget<minimap>(&win, "minimap", false).set_map_data(map_data);
|
||||
|
|
Loading…
Add table
Reference in a new issue