summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-16 23:02:51 +0000
committerrubidium <rubidium@openttd.org>2011-11-16 23:02:51 +0000
commit77b8343d8a1d9839e92d1e1483ec9fb436f57ada (patch)
treec36d85bac4475582e77d374179b2a62fdf1dad28 /src
parent50b76125cdd16ad9a71f342f001a81326047be4f (diff)
downloadopenttd-77b8343d8a1d9839e92d1e1483ec9fb436f57ada.tar.xz
(svn r23237) -Fix: ignore special characters, such as the train "character", when determining a fallback font
Diffstat (limited to 'src')
-rw-r--r--src/strings.cpp2
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;
}