]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
.ase also works from .map!
authorRudolf Polzer <divverent@alientrap.org>
Sat, 9 Oct 2010 17:37:43 +0000 (19:37 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 9 Oct 2010 17:37:43 +0000 (19:37 +0200)
tools/quake3/q3map2/convert_map.c
tools/quake3/q3map2/main.c

index 69418854eef79ffbea9017183e8faa1e66792d35..0f37665d672aef5ba8136d2d23bed45416db7c02 100644 (file)
@@ -493,7 +493,10 @@ static void ConvertBrush( FILE *f, int num, bspBrush_t *brush, vec3_t origin, qb
                        if(strncmp(buildSide->shaderInfo->shader, "textures/common/", 16))
                        if(strcmp(buildSide->shaderInfo->shader, "noshader"))
                        if(strcmp(buildSide->shaderInfo->shader, "default"))
+                       {
                                fprintf(stderr, "no matching triangle for brushside using %s (hopefully nobody can see this side anyway)\n", buildSide->shaderInfo->shader);
+                               texture = "common/WTF";
+                       }
 
                        MakeNormalVectors( buildPlane->normal, vecs[ 0 ], vecs[ 1 ] );
                        VectorMA( vec3_origin, buildPlane->dist, buildPlane->normal, pts[ 0 ] );
index 55147b3ab145af8f2278cfd897b3998f1472c764..062e4693e0b6b85dfcb5666c5324f99271b97bf9 100644 (file)
@@ -1508,14 +1508,14 @@ int ConvertBSPMain( int argc, char **argv )
        int             i;
        int             (*convertFunc)( char * );
        game_t  *convertGame;
-       qboolean        map_allowed;
        char            ext[1024];
+       qboolean        map_allowed;
        
        
        /* set default */
        convertFunc = ConvertBSPToASE;
        convertGame = NULL;
-       map_allowed = qfalse;
+       map_allowed = qtrue;
        
        /* arg checking */
        if( argc < 1 )
@@ -1534,6 +1534,7 @@ int ConvertBSPMain( int argc, char **argv )
                        if( !Q_stricmp( argv[ i ], "ase" ) )
                        {
                                convertFunc = ConvertBSPToASE;
+                               map_allowed = qtrue;
                        }
                        else if( !Q_stricmp( argv[ i ], "map_bp" ) )
                        {
@@ -1548,6 +1549,7 @@ int ConvertBSPMain( int argc, char **argv )
                        else
                        {
                                convertGame = GetGame( argv[ i ] );
+                               map_allowed = qfalse;
                                if( convertGame == NULL )
                                        Sys_Printf( "Unknown conversion format \"%s\". Defaulting to ASE.\n", argv[ i ] );
                        }