From: Rudolf Polzer Date: Mon, 16 Jan 2012 14:40:08 +0000 (+0100) Subject: make -sRGB not force a light compile X-Git-Tag: xonotic-v0.6.0~30^2~39 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=782a79ceead9490b7cc29f437637badc3ace7abc;p=xonotic%2Fxonotic.git make -sRGB not force a light compile --- diff --git a/misc/tools/xonotic-map-compiler b/misc/tools/xonotic-map-compiler index 667ef7a1..6558a15e 100755 --- a/misc/tools/xonotic-map-compiler +++ b/misc/tools/xonotic-map-compiler @@ -137,12 +137,14 @@ while(@ARGV) elsif($_ eq '-sRGB') { push @{$options->{bsp}}, "-sRGBtex", "-sRGBcolor"; - push @{$options->{light}}, "-sRGBtex", "-sRGBcolor", "-sRGBlight"; + push @{$options->{light}}, "-sRGBtex", "-sRGBcolor", "-sRGBlight" + if defined $options->{light}; } elsif($_ eq '-nosRGB') { push @{$options->{bsp}}, "-nosRGBtex", "-nosRGBcolor"; - push @{$options->{light}}, "-nosRGBtex", "-nosRGBcolor", "-nosRGBlight"; + push @{$options->{light}}, "-nosRGBtex", "-nosRGBcolor", "-nosRGBlight" + if defined $options->{light}; } elsif($_ =~ /^--no(-.*)/) {