From: Thomas Debesse Date: Sat, 28 Apr 2018 13:15:23 +0000 (+0200) Subject: q3map2: fix prt loading for vis computation when using -prtfile X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6a7dedc09f1a4b72077e0012bf0499a0005973d6;p=xonotic%2Fnetradiant.git q3map2: fix prt loading for vis computation when using -prtfile --- diff --git a/tools/quake3/q3map2/vis.c b/tools/quake3/q3map2/vis.c index f5f3c348..73a22c8a 100644 --- a/tools/quake3/q3map2/vis.c +++ b/tools/quake3/q3map2/vis.c @@ -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 ) {