]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xonotic-map-compiler
error if map file can't be found.
[xonotic/xonotic.git] / misc / tools / xonotic-map-compiler
index 9bf255fb44f0c1c7268774f87389cb6f786447ad..6558a15ecfe1b35fd225f26831473275e9918a30 100755 (executable)
@@ -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')