]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_draw.c
fix the bug I just fixed another time :P slight speedup, no other change from this
[xonotic/darkplaces.git] / gl_draw.c
index ec53f912d0313ce8464659fab83146d9c746f989..ff8176f245772e3d704832da5b67aad808c830a4 100644 (file)
--- 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);
@@ -1517,7 +1516,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)