changeset 16299:5c920b2c2509 draft

(svn r21007) -Fix: don't consider the text direction character when searching for missing glyphs
author rubidium <rubidium@openttd.org>
date Fri, 22 Oct 2010 12:17:34 +0000
parents 1c8b845b9f2c
children dc73a1365f96
files src/strings.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -1593,7 +1593,7 @@
 					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;
 				}