… | |
… | |
144 | if (!strcmp (w_style, "none")) |
144 | if (!strcmp (w_style, "none")) |
145 | return; |
145 | return; |
146 | sprintf (styledirname, "%s", "/styles/wallstyles"); |
146 | sprintf (styledirname, "%s", "/styles/wallstyles"); |
147 | sprintf (stylefilepath, "%s/%s", styledirname, w_style); |
147 | sprintf (stylefilepath, "%s/%s", styledirname, w_style); |
148 | style_map = find_style (styledirname, w_style, -1); |
148 | style_map = find_style (styledirname, w_style, -1); |
149 | if (style_map == 0) |
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 = pick_random_object (style_map)) != NULL) |
154 | { |
154 | { |