mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 20:14:54 +02:00
new logger
scripts are now more error prone
This commit is contained in:
@@ -47,7 +47,7 @@ void Fonts::init(const std::string& defaultFontName)
|
||||
}
|
||||
|
||||
if(!m_defaultFont)
|
||||
logFatal("Could not load the default font \"%s\"\n", defaultFontName.c_str());
|
||||
flogFatal("FATAL ERROR: Could not load the default font \"%s\"\n", defaultFontName.c_str());
|
||||
}
|
||||
|
||||
Font* Fonts::get(const std::string& fontName)
|
||||
@@ -58,6 +58,6 @@ Font* Fonts::get(const std::string& fontName)
|
||||
return (*it).get();
|
||||
}
|
||||
|
||||
logError("Font \"%s\" not found, returing the default one", fontName.c_str());
|
||||
flogError("ERROR: Font \"%s\" not found, returing the default one", fontName.c_str());
|
||||
return m_defaultFont.get();
|
||||
}
|
||||
|
Reference in New Issue
Block a user