]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xonotic-map-compiler
error if map file can't be found.
[xonotic/xonotic.git] / 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(-.*)/)
        {