diff options
author | rubidium <rubidium@openttd.org> | 2010-10-22 12:17:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-10-22 12:17:34 +0000 |
commit | 6e3a46d295d3ee96c678c8e2dce511f135b5d9aa (patch) | |
tree | 76cf992212bf7ab8062beab4ab5875332a912d06 | |
parent | b933819b0b0f07d4f2aef590f76898b35fdea607 (diff) | |
download | openttd-6e3a46d295d3ee96c678c8e2dce511f135b5d9aa.tar.xz |
(svn r21007) -Fix: don't consider the text direction character when searching for missing glyphs
-rw-r--r-- | src/strings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index f03ab65bf..0d27bb9c0 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1593,7 +1593,7 @@ static bool FindMissingGlyphs(const char **str) text++; } else if (c == SCC_SETXY) { text += 2; - } else if (IsPrintable(c) && c != '?' && GetGlyph(FS_NORMAL, c) == question_mark) { + } else if (IsPrintable(c) && !IsTextDirectionChar(c) && c != '?' && GetGlyph(FS_NORMAL, c) == question_mark) { /* The character is printable, but not in the normal font. This is the case we were testing for. */ return true; } |