]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
fix if(...)
authorrpolzer <rpolzer@61c419a2-8eb2-4b30-bcec-8cead039b335>
Mon, 27 Oct 2008 12:42:04 +0000 (12:42 +0000)
committerrpolzer <rpolzer@61c419a2-8eb2-4b30-bcec-8cead039b335>
Mon, 27 Oct 2008 12:42:04 +0000 (12:42 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@121 61c419a2-8eb2-4b30-bcec-8cead039b335

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" );