now it should work I have forgotten set_font_list

This commit is contained in:
Jon Daniel 2005-08-09 21:43:20 +00:00
parent 4ca21247f4
commit a04e817e38

View file

@ -280,8 +280,12 @@ void set_font_list(const std::vector<subset_descriptor>& fontlist)
// Insert fonts only if the font file exists
if(game_config::path.empty() == false) {
if(!file_exists(game_config::path + "/fonts/" + itor->name)) {
WRN_FT << "Failed opening font file '" << itor->name << "': No such file or directory\n";
continue;
if(!file_exists("fonts/" + itor->name)) {
if(!file_exists(itor->name)) {
WRN_FT << "Failed opening font file '" << itor->name << "': No such file or directory\n";
continue;
}
}
}
} else {
if(!file_exists("fonts/" + itor->name)) {