From: divverent Date: Wed, 20 Jan 2010 09:39:52 +0000 (+0000) Subject: fix the bug I just fixed another time :P slight speedup, no other change from this X-Git-Tag: xonotic-v0.1.0preview~230^2~628 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=16d1bc98646ef5ac05806f7190b3424b70804c32;p=xonotic%2Fdarkplaces.git fix the bug I just fixed another time :P slight speedup, no other change from this git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9841 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_draw.c b/gl_draw.c index 2f058761..b7f66acc 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -1241,7 +1241,6 @@ float DrawQ_TextWidth_UntilWidth_TrackColors_Scale(const char *text, size_t *max } x += width_of[ch] * dw; } else { - //if (!map || map == ft2_oldstyle_map || map->start < ch || map->start + FONT_CHARS_PER_MAP >= ch) if (!map || map == ft2_oldstyle_map || ch < map->start || ch >= map->start + FONT_CHARS_PER_MAP) { map = FontMap_FindForChar(fontmap, ch); @@ -1513,7 +1512,7 @@ float DrawQ_String_Scale(float startx, float starty, const char *text, size_t ma } x += width_of[ch] * dw; } else { - if (!map || map == ft2_oldstyle_map || map->start < ch || map->start + FONT_CHARS_PER_MAP >= ch) + if (!map || map == ft2_oldstyle_map || ch < map->start || ch >= map->start + FONT_CHARS_PER_MAP) { // new charmap - need to render if (batchcount)