From 782a79ceead9490b7cc29f437637badc3ace7abc Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 16 Jan 2012 15:40:08 +0100 Subject: [PATCH] make -sRGB not force a light compile --- misc/tools/xonotic-map-compiler | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(-.*)/) { -- 2.39.2