fix one issue with textshadow moving oddly around in an unknown situation
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 29 Oct 2010 14:25:45 +0000 (14:25 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 29 Oct 2010 14:25:45 +0000 (14:25 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10564 d7cf8633-e32d-0410-b094-e92efae38249

gl_draw.c

index ec9392d..24eb6fa 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -1637,7 +1637,7 @@ float DrawQ_String_Scale(float startx, float starty, const char *text, size_t ma
                                if (ch > 0xE000)
                                        ch -= 0xE000;
                                if (ch > 0xFF)
-                                       continue;
+                                       goto out;
                                if (fontmap)
                                {
                                        if (map != ft2_oldstyle_map)
@@ -1769,6 +1769,7 @@ float DrawQ_String_Scale(float startx, float starty, const char *text, size_t ma
                                //prevmap = map;
                                prevch = ch;
                        }
+out:
                        if (shadow)
                        {
                                x -= 1.0/pix_x * r_textshadow.value;