… | |
… | |
103 | /* get the style map */ |
103 | /* get the style map */ |
104 | sprintf (styledirname, "%s", "/styles/treasurestyles"); |
104 | sprintf (styledirname, "%s", "/styles/treasurestyles"); |
105 | sprintf (stylefilepath, "%s/%s", styledirname, treasure_style); |
105 | sprintf (stylefilepath, "%s/%s", styledirname, treasure_style); |
106 | style_map = find_style (styledirname, treasure_style, -1); |
106 | style_map = find_style (styledirname, treasure_style, -1); |
107 | |
107 | |
|
|
108 | if (!style_map) |
|
|
109 | { |
|
|
110 | LOG (llevError, "unable to load style map %s %s.\n", styledirname, treasure_style); |
|
|
111 | return; |
|
|
112 | } |
|
|
113 | |
108 | /* all the treasure at one spot in the map. */ |
114 | /* all the treasure at one spot in the map. */ |
109 | if (treasureoptions & CONCENTRATED) |
115 | if (treasureoptions & CONCENTRATED) |
110 | { |
116 | { |
111 | |
117 | |
112 | /* map_layout_style global, and is previously set */ |
118 | /* map_layout_style global, and is previously set */ |