… | |
… | |
50 | |
50 | |
51 | if (!style_map) |
51 | if (!style_map) |
52 | return; |
52 | return; |
53 | |
53 | |
54 | /* fill up the map with the given floor style */ |
54 | /* fill up the map with the given floor style */ |
55 | if ((the_floor = pick_random_object (style_map)) != NULL) |
55 | if ((the_floor = pick_random_object (style_map))) |
56 | for (int x = 0; x < width; x++) |
56 | for (int x = 0; x < width; x++) |
57 | for (int y = 0; y < height; y++) |
57 | for (int y = 0; y < height; y++) |
58 | insert (arch_to_object (the_floor->arch), x, y, 0, INS_NO_MERGE | INS_NO_WALK_ON); |
58 | insert (arch_to_object (the_floor->arch), x, y, 0, INS_NO_MERGE | INS_NO_WALK_ON); |
59 | } |
59 | } |