diff options
Diffstat (limited to 'src/graphics/engine/text.cpp')
-rw-r--r-- | src/graphics/engine/text.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/graphics/engine/text.cpp b/src/graphics/engine/text.cpp index 7e226a0..36ad660 100644 --- a/src/graphics/engine/text.cpp +++ b/src/graphics/engine/text.cpp @@ -58,7 +58,6 @@ CText::CText(CInstanceManager *iMan, CEngine* engine) m_engine = engine; m_defaultSize = 12.0f; - m_fontPath = "fonts"; m_lastFontType = FONT_COLOBOT; m_lastFontSize = 0; @@ -738,7 +737,7 @@ CachedFont* CText::GetOrOpenFont(FontType font, float size) return m_lastCachedFont; } - std::string path = CApplication::GetInstance().GetDataFilePath(m_fontPath, mf->fileName); + std::string path = CApplication::GetInstance().GetDataFilePath(DIR_FONT, mf->fileName); m_lastCachedFont = new CachedFont(); m_lastCachedFont->font = TTF_OpenFont(path.c_str(), pointSize); |