JANITORIAL: Unbreak building with --disable-translation

I don't know if there is more code that can be removed when
disabling translations, but this is the obvious obstacle.
This commit is contained in:
eriktorbjorn 2011-06-07 06:21:04 +02:00
parent 7ea4583d2f
commit a826c4422f

View File

@ -117,11 +117,13 @@ const Font *FontManager::getFontByUsage(FontUsage usage) const {
if (font)
return font;
}
#ifdef USE_TRANSLATION
// Accept any other font that has the charset in its name
for (Common::HashMap<Common::String, const Font *>::const_iterator it = _fontMap.begin() ; it != _fontMap.end() ; ++it) {
if (it->_key.contains(TransMan.getCurrentCharset()))
return it->_value;
}
#endif
// Fallback: return a non localized kGUIFont.
// Maybe we should return a null pointer instead?
return g_sysfont;