[nexuiz-commits] r7297 - branches/nexuiz-2.0/misc/tools
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Aug 3 11:12:26 EDT 2009
Author: div0
Date: 2009-08-03 11:12:25 -0400 (Mon, 03 Aug 2009)
New Revision: 7297
Modified:
branches/nexuiz-2.0/misc/tools/WeaponEncounterProfile.pm
branches/nexuiz-2.0/misc/tools/weapon-profiler-analyzer.pl
Log:
fix a missed svn merge
Modified: branches/nexuiz-2.0/misc/tools/WeaponEncounterProfile.pm
===================================================================
--- branches/nexuiz-2.0/misc/tools/WeaponEncounterProfile.pm 2009-08-03 13:44:30 UTC (rev 7296)
+++ branches/nexuiz-2.0/misc/tools/WeaponEncounterProfile.pm 2009-08-03 15:12:25 UTC (rev 7297)
@@ -121,12 +121,14 @@
sub weaponid_to_name($$)
{
my ($self, $id) = @_;
+ exists $WeaponMap{$id} or warn "weapon of id $id not found\n";
return $WeaponMap{$id}[0];
}
sub weaponid_to_model($$)
{
my ($self, $id) = @_;
+ exists $WeaponMap{$id} or warn "weapon of id $id not found\n";
return $WeaponMap{$id}[1];
}
Modified: branches/nexuiz-2.0/misc/tools/weapon-profiler-analyzer.pl
===================================================================
--- branches/nexuiz-2.0/misc/tools/weapon-profiler-analyzer.pl 2009-08-03 13:44:30 UTC (rev 7296)
+++ branches/nexuiz-2.0/misc/tools/weapon-profiler-analyzer.pl 2009-08-03 15:12:25 UTC (rev 7297)
@@ -136,6 +136,7 @@
++$allweps{$k2};
}
}
+ delete $allweps{0}; # ignore the tuba
my @allweps = keys %allweps;
my %values;
More information about the nexuiz-commits
mailing list