diff options
author | Paul Gilbert | 2014-05-30 20:42:17 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-05-30 20:42:17 -0400 |
commit | 6229bcb9f291e5e8d82688f7809575c1bf3f4c99 (patch) | |
tree | ebd7a0de59d341242ce2911f86077f6dd3aa4493 /engines/mads | |
parent | a96f2606539a532848907df1e0d3604ca18573d2 (diff) | |
download | scummvm-rg350-6229bcb9f291e5e8d82688f7809575c1bf3f4c99.tar.gz scummvm-rg350-6229bcb9f291e5e8d82688f7809575c1bf3f4c99.tar.bz2 scummvm-rg350-6229bcb9f291e5e8d82688f7809575c1bf3f4c99.zip |
MADS: Fix loading fonts used by animations
Diffstat (limited to 'engines/mads')
-rw-r--r-- | engines/mads/font.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/mads/font.cpp b/engines/mads/font.cpp index 6af1346f01..f7c1c52703 100644 --- a/engines/mads/font.cpp +++ b/engines/mads/font.cpp @@ -89,7 +89,11 @@ void Font::setFont(const Common::String &filename) { _filename = filename; - MadsPack fontData(filename, _vm); + Common::String resName = filename; + if (!resName.hasSuffix(".FF")) + resName += ".FF"; + + MadsPack fontData(resName, _vm); Common::SeekableReadStream *fontFile = fontData.getItemStream(0); _maxHeight = fontFile->readByte(); |