[nexuiz-commits] r6582 - trunk/misc/tools

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Apr 23 16:40:57 EDT 2009


Author: div0
Date: 2009-04-23 16:40:56 -0400 (Thu, 23 Apr 2009)
New Revision: 6582

Modified:
   trunk/misc/tools/nexuiz-map-compiler
Log:
allow a .map or .bsp suffix in the command line


Modified: trunk/misc/tools/nexuiz-map-compiler
===================================================================
--- trunk/misc/tools/nexuiz-map-compiler	2009-04-23 19:51:08 UTC (rev 6581)
+++ trunk/misc/tools/nexuiz-map-compiler	2009-04-23 20:40:56 UTC (rev 6582)
@@ -132,6 +132,7 @@
 
 for my $m(@{$options->{maps}})
 {
+	$m =~ s/\.(?:map|bsp)$//;
 	if($prescale != 1 or $postscale != 1)
 	{
 		open my $checkfh, "<", "$m.map"



More information about the nexuiz-commits mailing list