]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/vis.c
q3map2: Smokin'Guns 1.2.1 flavour
[xonotic/netradiant.git] / tools / quake3 / q3map2 / vis.c
index 584ed68f87a81488be7c2d4540d299472e640b4d..66a46addaf038e58c8c1ce1520505da7a6b4dbc1 100644 (file)
@@ -1181,6 +1181,14 @@ int VisMain( int argc, char **argv ){
        Sys_Printf( "Loading %s\n", source );
        LoadBSPFile( source );
 
+#ifdef SMOKINGUNS
+       StripExtension (source);
+       strcat (source, ".tex");
+       LoadSurfaceFlags(source);
+       StripExtension (source);
+       strcat (source, ".bsp");
+#endif
+
        /* load the portal file */
        if (!portalFilePath[0]) {
                sprintf( portalFilePath, "%s%s", inbase, ExpandArg( argv[ i ] ) );
@@ -1223,6 +1231,12 @@ int VisMain( int argc, char **argv ){
                remove( portalFilePath );
        }
 
+#ifdef SMOKINGUNS
+       StripExtension (source);
+       WriteTexFile(source);
+       DefaultExtension (source, ".bsp");
+#endif
+
        /* write the bsp file */
        Sys_Printf( "Writing %s\n", source );
        WriteBSPFile( source );