]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
make -sRGB not force a light compile
authorRudolf Polzer <divverent@alientrap.org>
Mon, 16 Jan 2012 14:40:08 +0000 (15:40 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 16 Jan 2012 14:40:08 +0000 (15:40 +0100)
misc/tools/xonotic-map-compiler

index 667ef7a1fd195e2e5f9daafb935bb48ed9bfe951..6558a15ecfe1b35fd225f26831473275e9918a30 100755 (executable)
@@ -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(-.*)/)
        {