[nexuiz-commits] r6593 - trunk/misc/tools
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Apr 26 07:23:57 EDT 2009
Author: div0
Date: 2009-04-26 07:23:57 -0400 (Sun, 26 Apr 2009)
New Revision: 6593
Modified:
trunk/misc/tools/nexuiz-map-compiler
Log:
minimap support to nexuiz-map-compiler
Modified: trunk/misc/tools/nexuiz-map-compiler
===================================================================
--- trunk/misc/tools/nexuiz-map-compiler 2009-04-26 11:11:22 UTC (rev 6592)
+++ trunk/misc/tools/nexuiz-map-compiler 2009-04-26 11:23:57 UTC (rev 6593)
@@ -27,6 +27,9 @@
# Default flags for the -light stage
our $LIGHTFLAGS = '-deluxe -patchshadows -samples 3 -lightmapsize 512 -bounce 8 -fastbounce -bouncegrid';
+ # Default flags for the -minimap stage
+ our $MINIMAPFLAGS = '';
+
# end of user changable part
do "$ENV{HOME}/.nexuiz-map-compiler";
@@ -45,6 +48,7 @@
bsp => [split /\s+/, $BSPFLAGS],
vis => [split /\s+/, $VISFLAGS],
light => [split /\s+/, $LIGHTFLAGS],
+ minimap => [split /\s+/, $MINIMAPFLAGS],
maps => [],
scale => 1
};
@@ -67,6 +71,10 @@
{
$enterflags = 'light';
}
+ elsif($_ eq '-minimap')
+ {
+ $enterflags = 'minimap';
+ }
elsif($_ eq '-map')
{
$curmode = 'maps';
@@ -83,6 +91,10 @@
{
$options->{light} = undef;
}
+ elsif($_ eq '-nominimap')
+ {
+ $options->{minimap} = undef;
+ }
elsif($_ =~ /^-(-.*)/)
{
if($curmode eq 'maps')
@@ -249,6 +261,11 @@
rename "${m}_s.bsp", "$m.bsp"
or die "rename ${m}_s.bsp $m.bsp: $!";
}
+ if(defined $options->{minimap})
+ {
+ q3map2 '-minimap', @{$options->{minimap}}, "$m.map"
+ or die "-minimap: $?";
+ }
unlink "$m.srf";
More information about the nexuiz-commits
mailing list