Fixed missing attributes usage and border_size...
...when the map is autogenerated by the usage of the generate_map attribute. This fixes bug #19642
This commit is contained in:
parent
f8fc1597ef
commit
9c9a8ad877
1 changed files with 4 additions and 0 deletions
|
@ -342,6 +342,8 @@ LEVEL_RESULT play_game(display& disp, game_state& gamestate, const config& game_
|
|||
new_level = *scenario;
|
||||
config& map = new_level.add_child("map");
|
||||
map["data"] = map_data;
|
||||
map["usage"] = "map";
|
||||
map["border_size"] = 1;
|
||||
scenario = &new_level;
|
||||
|
||||
//merge carryover information into the scenario
|
||||
|
@ -523,6 +525,8 @@ LEVEL_RESULT play_game(display& disp, game_state& gamestate, const config& game_
|
|||
new_level = *scenario;
|
||||
config& map = new_level.add_child("map");
|
||||
map["data"] = map_data;
|
||||
map["usage"] = "map";
|
||||
map["border_size"] = 1;
|
||||
scenario = &new_level;
|
||||
|
||||
gamestate.starting_pos = new_level;
|
||||
|
|
Loading…
Add table
Reference in a new issue