]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/vis.c
q3map2: fix prt loading for vis computation when using -prtfile
[xonotic/netradiant.git] / tools / quake3 / q3map2 / vis.c
index f5f3c348b40f0ab407500fe3fef60c983b6c1262..73a22c8a77bf398ab7e36629c750bac25fdd762b 100644 (file)
@@ -1184,9 +1184,9 @@ int VisMain( int argc, char **argv ){
                sprintf( portalFilePath, "%s%s", inbase, ExpandArg( argv[ i ] ) );
                StripExtension( portalFilePath );
                strcat( portalFilePath, ".prt" );
-               Sys_Printf( "Loading %s\n", portalFilePath );
-               LoadPortals( portalFilePath );
        }
+       Sys_Printf( "Loading %s\n", portalFilePath );
+       LoadPortals( portalFilePath );
 
        /* ydnar: exit if no portals, hence no vis */
        if ( numportals == 0 ) {