]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/main.c
q3map2: inject the invocation commandline into keys of the worldspawn entity (to...
[xonotic/netradiant.git] / tools / quake3 / q3map2 / main.c
index 9e4f36590dcffe9b7469313d1f5ef9c63255de35..44b0c821595a8ce570afb61305948a5e082ad610 100644 (file)
@@ -473,6 +473,9 @@ int ScaleBSPMain( int argc, char **argv )
        VectorScale( vec, scale, vec );
        sprintf( str, "%f %f %f", vec[ 0 ], vec[ 1 ], vec[ 2 ] );
        SetKeyValue( &entities[ 0 ], "gridsize", str );
+
+       /* inject command line parameters */
+       InjectCommandLine(argv, 0, argc - 1);
        
        /* write the bsp */
        UnparseEntities();