From 82803d3ca0984ae4a4e1707000737f1925c16ebd Mon Sep 17 00:00:00 2001 From: morturp Date: Wed, 26 Jun 2013 11:42:59 +0300 Subject: Prevent the skip of the glyph if it does not fit --- src/renderercommon/tr_font.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/renderercommon/tr_font.c b/src/renderercommon/tr_font.c index 8524684c..33f0b59e 100644 --- a/src/renderercommon/tr_font.c +++ b/src/renderercommon/tr_font.c @@ -504,7 +504,8 @@ void RE_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font) { xOut = 0; yOut = 0; ri.Free(imageBuff); - i++; + if(i == GLYPH_END) + i++; } else { Com_Memcpy(&font->glyphs[i], glyph, sizeof(glyphInfo_t)); i++; -- cgit