]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
map compiler: -minimap: work better with mapinfo bounds and -scale
authorRudolf Polzer <divverent@alientrap.org>
Wed, 3 Nov 2010 20:33:40 +0000 (21:33 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 3 Nov 2010 20:33:40 +0000 (21:33 +0100)
misc/tools/xonotic-map-compiler

index 73cb21971402799627142746ef14031972104002..c80e0a92640c08b72682a66ef76638ef1e546ba5 100755 (executable)
@@ -31,7 +31,7 @@ use File::Temp;
        our $MINIMAPFLAGS = '';
 
        # Default order of commands
-       our $ORDER = 'light,vis,minimap';
+       our $ORDER = 'vis,light';
 
 # end of user changable part
 
@@ -325,7 +325,7 @@ for my $m(@{$options->{maps}})
                                or die "rename ${m}_s.bsp $m.bsp: $!";
                }
                my @o = @{$options->{order}};
-               push @o, qw/light vis minimap/;
+               push @o, qw/light vis/;
                my %o = ();
 
                for(@o)
@@ -347,14 +347,6 @@ for my $m(@{$options->{maps}})
                                                or die "-vis: $?";
                                }
                        }
-                       if($_ eq 'minimap')
-                       {
-                               if(defined $options->{minimap})
-                               {
-                                       q3map2 '-minimap',      @{$options->{minimap}}, "$m.map"
-                                               or die "-minimap: $?";
-                               }
-                       }
                }
 
                if($postscale != 1)
@@ -365,6 +357,12 @@ for my $m(@{$options->{maps}})
                                or die "rename ${m}_s.bsp $m.bsp: $!";
                }
 
+               if(defined $options->{minimap})
+               {
+                       q3map2 '-minimap',      @{$options->{minimap}}, "$m.map"
+                               or die "-minimap: $?";
+               }
+
                unlink "$m.srf";
                unlink "$m.prt";