]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xonotic-map-compiler
Merge remote-tracking branch 'origin/matthiaskrgr/all_grep'
[xonotic/xonotic.git] / misc / tools / xonotic-map-compiler
index 9bf255fb44f0c1c7268774f87389cb6f786447ad..aa9e747d955585a9a10bff3e243720e0b16d1764 100755 (executable)
@@ -9,11 +9,11 @@ use File::Temp;
 # (just copy paste this part to the file ~/.xonotic-map-compiler)
 
        # Path to Xonotic (where the data directory is in)
-       our $XONOTICDIR   = '/home/rpolzer/Games/Xonotic';
+       our $XONOTICDIR   = '.';
 
        # Path to your q3map2 program. You find it in your GtkRadiant/install
        # directory.
-       our $Q3MAP2      = '/home/rpolzer/Games/Xonotic/netradiant/install/q3map2.x86';
+       our $Q3MAP2      = './netradiant/install/q3map2.x86';
 
        # General flags for q3map2 (for example -threads 4)
        our $Q3MAP2FLAGS = '-fs_forbiddenpath xonotic*-data*.pk3* -fs_forbiddenpath xonotic*-nexcompat*.pk3*';
@@ -134,6 +134,18 @@ while(@ARGV)
        {
                $options->{order} = [split /\s*,\s*/, shift @ARGV];
        }
+       elsif($_ eq '-sRGB')
+       {
+               push @{$options->{bsp}}, "-sRGBtex", "-sRGBcolor";
+               push @{$options->{light}}, "-sRGBtex", "-sRGBcolor", "-sRGBlight"
+                       if defined $options->{light};
+       }
+       elsif($_ eq '-nosRGB')
+       {
+               push @{$options->{bsp}}, "-nosRGBtex", "-nosRGBcolor";
+               push @{$options->{light}}, "-nosRGBtex", "-nosRGBcolor", "-nosRGBlight"
+                       if defined $options->{light};
+       }
        elsif($_ =~ /^--no(-.*)/)
        {
                if($curmode eq 'maps')