]> de.git.xonotic.org Git - xonotic/xonotic.git/commitdiff
xonotic-map-compiler: add master switch options -sRGB, -nosRGB
authorRudolf Polzer <divverent@alientrap.org>
Sun, 25 Dec 2011 17:47:02 +0000 (18:47 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 25 Dec 2011 17:47:02 +0000 (18:47 +0100)
misc/tools/xonotic-map-compiler

index 9bf255fb44f0c1c7268774f87389cb6f786447ad..667ef7a1fd195e2e5f9daafb935bb48ed9bfe951 100755 (executable)
@@ -134,6 +134,16 @@ while(@ARGV)
        {
                $options->{order} = [split /\s*,\s*/, shift @ARGV];
        }
+       elsif($_ eq '-sRGB')
+       {
+               push @{$options->{bsp}}, "-sRGBtex", "-sRGBcolor";
+               push @{$options->{light}}, "-sRGBtex", "-sRGBcolor", "-sRGBlight";
+       }
+       elsif($_ eq '-nosRGB')
+       {
+               push @{$options->{bsp}}, "-nosRGBtex", "-nosRGBcolor";
+               push @{$options->{light}}, "-nosRGBtex", "-nosRGBcolor", "-nosRGBlight";
+       }
        elsif($_ =~ /^--no(-.*)/)
        {
                if($curmode eq 'maps')