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:
Fabian Müller 2012-05-28 17:55:58 +00:00
parent f8fc1597ef
commit 9c9a8ad877

View file

@ -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;