]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/convert_ase.c
fix if(...)
[xonotic/netradiant.git] / tools / quake3 / q3map2 / convert_ase.c
index fab0ebe2c98802ed9a80add43229d8cc772de948..59cc3d9cc41aa7291ab07a6e814160d9bd0b938f 100644 (file)
@@ -271,10 +271,10 @@ static void ConvertShader( FILE *f, bspShader_t *shader, int shaderNum )
        fprintf( f, "\t\t\t*MAP_SUBNO\t1\r\n" );
        fprintf( f, "\t\t\t*MAP_AMOUNT\t1.0\r\n" );
        fprintf( f, "\t\t\t*MAP_TYPE\tScreen\r\n" );
-       if(...)
-               fprintf( f, "\t\t\t*BITMAP\t\"..\\%s\"\r\n", filename );
-       else
+       if(shadersAsBitmap)
                fprintf( f, "\t\t\t*BITMAP\t\"%s\"\r\n", shader->shader );
+       else
+               fprintf( f, "\t\t\t*BITMAP\t\"..\\%s\"\r\n", filename );
        fprintf( f, "\t\t\t*BITMAP_FILTER\tPyramidal\r\n" );
        fprintf( f, "\t\t}\r\n" );