From 77b8343d8a1d9839e92d1e1483ec9fb436f57ada Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 16 Nov 2011 23:02:51 +0000 Subject: [PATCH] (svn r23237) -Fix: ignore special characters, such as the train "character", when determining a fallback font --- src/strings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strings.cpp b/src/strings.cpp index 6310fcea33..c9af43e548 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; }