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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Sep 26 09:01:53 EDT 2009


Author: div0
Date: 2009-09-26 09:01:53 -0400 (Sat, 26 Sep 2009)
New Revision: 7922

Modified:
   trunk/misc/tools/WeaponEncounterProfile.pm
Log:
allow comments starting with #


Modified: trunk/misc/tools/WeaponEncounterProfile.pm
===================================================================
--- trunk/misc/tools/WeaponEncounterProfile.pm	2009-09-26 12:36:04 UTC (rev 7921)
+++ trunk/misc/tools/WeaponEncounterProfile.pm	2009-09-26 13:01:53 UTC (rev 7922)
@@ -24,6 +24,7 @@
 	while(<$fh>)
 	{
 		chomp;
+		/^#/ and next;
 		my ($addr, $map, $attackerweapon, $targweapon, $value) = split /\t/, $_;
 		$targweapon = int $self->weaponid_from_name($targweapon)
 			if $targweapon ne int $targweapon;



More information about the nexuiz-commits mailing list