… | |
… | |
148 | style_map = find_style (styledirname, w_style, -1); |
148 | style_map = find_style (styledirname, w_style, -1); |
149 | if (!style_map) |
149 | if (!style_map) |
150 | return; |
150 | return; |
151 | |
151 | |
152 | /* fill up the map with the given floor style */ |
152 | /* fill up the map with the given floor style */ |
153 | if ((the_wall = pick_random_object (style_map)) != NULL) |
153 | if ((the_wall = style_map->pick_random_object ())) |
154 | { |
154 | { |
155 | int i, j; |
155 | int i, j; |
156 | char *cp; |
156 | char *cp; |
157 | int joinedwalls = 0; |
157 | int joinedwalls = 0; |
158 | object *thiswall; |
158 | object *thiswall; |