From: Rudolf Polzer Date: Sun, 25 Dec 2011 17:47:02 +0000 (+0100) Subject: xonotic-map-compiler: add master switch options -sRGB, -nosRGB X-Git-Tag: xonotic-v0.6.0~32^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9feb4a46ee130ec755f375a50e36141eba59d297;p=xonotic%2Fxonotic.git xonotic-map-compiler: add master switch options -sRGB, -nosRGB --- diff --git a/misc/tools/xonotic-map-compiler b/misc/tools/xonotic-map-compiler index 9bf255fb..667ef7a1 100755 --- a/misc/tools/xonotic-map-compiler +++ b/misc/tools/xonotic-map-compiler @@ -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')