]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - ft2.c
fix a bunch of type-punned pointer warnings
[xonotic/darkplaces.git] / ft2.c
diff --git a/ft2.c b/ft2.c
index 0e99c1e41a7cd979505bee9d56ed9398131a19b4..dbbf056a7266be0dce0457ccb9ac12072c9e9f7c 100644 (file)
--- a/ft2.c
+++ b/ft2.c
@@ -503,7 +503,7 @@ static qboolean Font_LoadSize(ft2_font_t *font, float size, qboolean no_texture,
        int map_index;
        ft2_font_map_t *fmap, temp;
 
-       if (IS_NAN(size))
+       if (!(size > 0.001f && size < 1000.0f))
                size = 0;
 
        if (!size)