summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-10-22 12:17:34 +0000
committerrubidium <rubidium@openttd.org>2010-10-22 12:17:34 +0000
commit6e3a46d295d3ee96c678c8e2dce511f135b5d9aa (patch)
tree76cf992212bf7ab8062beab4ab5875332a912d06 /src
parentb933819b0b0f07d4f2aef590f76898b35fdea607 (diff)
downloadopenttd-6e3a46d295d3ee96c678c8e2dce511f135b5d9aa.tar.xz
(svn r21007) -Fix: don't consider the text direction character when searching for missing glyphs
Diffstat (limited to 'src')
-rw-r--r--src/strings.cpp2
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;
}