# HG changeset patch # User rubidium # Date 2011-11-16 23:02:51 # Node ID f9da766e3e8a809841d91d76a8fe4bb944396c8d # Parent 50db44cea8219b31545ec47b561c94fa60cb9f1e (svn r23237) -Fix: ignore special characters, such as the train "character", when determining a fallback font diff --git a/src/strings.cpp b/src/strings.cpp --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1780,7 +1780,7 @@ static bool FindMissingGlyphs(const char 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; }