From 9feb4a46ee130ec755f375a50e36141eba59d297 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 25 Dec 2011 18:47:02 +0100 Subject: [PATCH] xonotic-map-compiler: add master switch options -sRGB, -nosRGB --- misc/tools/xonotic-map-compiler | 10 ++++++++++ 1 file changed, 10 insertions(+) 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') -- 2.39.2