Changeset - r18391:f9da766e3e8a
[Not reviewed]
master
0 1 0
rubidium - 13 years ago 2011-11-16 23:02:51
rubidium@openttd.org
(svn r23237) -Fix: ignore special characters, such as the train "character", when determining a fallback font
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/strings.cpp
Show inline comments
 
@@ -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;
 
				}
0 comments (0 inline, 0 general)