(svn r23237) -Fix: ignore special characters, such as the train "character", when determining a fallback font

This commit is contained in:
rubidium 2011-11-16 23:02:51 +00:00
parent 50b76125cd
commit 77b8343d8a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}