… | |
… | |
95 | } |
95 | } |
96 | |
96 | |
97 | maptile * |
97 | maptile * |
98 | find_style (const char *dirname, const char *stylename, int difficulty) |
98 | find_style (const char *dirname, const char *stylename, int difficulty) |
99 | { |
99 | { |
100 | char style_file_path[256]; |
100 | char style_file_path[1024]; |
101 | char style_file_full_path[256]; |
101 | char style_file_full_path[1024]; |
102 | maptile *style_map = NULL; |
102 | maptile *style_map = NULL; |
103 | struct stat file_stat; |
103 | struct stat file_stat; |
104 | int i, only_subdirs = 0; |
104 | int i, only_subdirs = 0; |
105 | |
105 | |
106 | /* if stylename exists, set style_file_path to that file. */ |
106 | /* if stylename exists, set style_file_path to that file. */ |