diff options
author | rubidium <rubidium@openttd.org> | 2011-11-16 23:02:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-16 23:02:51 +0000 |
commit | 77b8343d8a1d9839e92d1e1483ec9fb436f57ada (patch) | |
tree | c36d85bac4475582e77d374179b2a62fdf1dad28 | |
parent | 50b76125cdd16ad9a71f342f001a81326047be4f (diff) | |
download | openttd-77b8343d8a1d9839e92d1e1483ec9fb436f57ada.tar.xz |
(svn r23237) -Fix: ignore special characters, such as the train "character", when determining a fallback font
-rw-r--r-- | src/strings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 6310fcea3..c9af43e54 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1780,7 +1780,7 @@ static bool FindMissingGlyphs(const char **str) size = FS_SMALL; } else if (c == SCC_BIGFONT) { size = FS_LARGE; - } else if (IsPrintable(c) && !IsTextDirectionChar(c) && c != '?' && GetGlyph(size, c) == question_mark[size]) { + } else if (!IsInsideMM(c, SCC_SPRITE_START, SCC_SPRITE_END) && IsPrintable(c) && !IsTextDirectionChar(c) && c != '?' && GetGlyph(size, c) == question_mark[size]) { /* The character is printable, but not in the normal font. This is the case we were testing for. */ return true; } |