fix particlefont.tga not getting closed
authorRudolf Polzer <divverent@alientrap.org>
Tue, 26 Oct 2010 17:23:49 +0000 (19:23 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 26 Oct 2010 17:23:49 +0000 (19:23 +0200)
qcsrc/menu/xonotic/dialog_settings_effects.c

index d5fbd82fd94c89692f55ab0f9fcf52cb41b43f4c..19b232f8ca504f2abffc9e454be90f6b72292e0f 100644 (file)
@@ -34,11 +34,11 @@ float updateCompression()
 {
        float fh;
        float have_dds, have_jpg, have_tga;
-       if((have_dds = (fh = fopen("dds/particles/particlefont.dds", FILE_READ) >= 0)))
+       if((have_dds = ((fh = fopen("dds/particles/particlefont.dds", FILE_READ)) >= 0)))
                fclose(fh);
-       if((have_jpg = (fh = fopen("particles/particlefont.jpg", FILE_READ) >= 0)))
+       if((have_jpg = ((fh = fopen("particles/particlefont.jpg", FILE_READ)) >= 0)))
                fclose(fh);
-       if((have_tga = (fh = fopen("particles/particlefont.tga", FILE_READ) >= 0)))
+       if((have_tga = ((fh = fopen("particles/particlefont.tga", FILE_READ)) >= 0)))
                fclose(fh);
        if(have_dds && (have_jpg || have_tga))
        {