Changeset - r8201:89fbf4ead421
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2008-01-05 22:19:27
rubidium@openttd.org
(svn r11764) -Change: make the 'do characters exist in the current font file(s)' more robust.
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/strings.cpp
Show inline comments
 
@@ -1450,6 +1450,8 @@ void InitializeLanguagePacks()
 
 */
 
void CheckForMissingGlyphsInLoadedLanguagePack()
 
{
 
	const Sprite *question_mark = GetGlyph(FS_NORMAL, '?');
 

	
 
	for (uint i = 0; i != 32; i++) {
 
		for (uint j = 0; j < _langtab_num[i]; j++) {
 
			const char *string = _langpack_offs[_langtab_start[i] + j];
 
@@ -1465,7 +1467,7 @@ void CheckForMissingGlyphsInLoadedLangua
 
					string++;
 
				} else if (c == SCC_SETXY) {
 
					string += 2;
 
				} else if (IsPrintable(c) && GetUnicodeGlyph(FS_NORMAL, c) == 0) {
 
				} else if (IsPrintable(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. In this case we
0 comments (0 inline, 0 general)