ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/Jeweler.pm
(Generate patch)

Comparing deliantra/server/ext/Jeweler.pm (file contents):
Revision 1.12 by elmex, Sun Feb 4 20:57:35 2007 UTC vs.
Revision 1.13 by elmex, Tue Apr 10 16:42:57 2007 UTC

1085 my $i = 0; 1085 my $i = 0;
1086 my $check_cnts = 0; 1086 my $check_cnts = 0;
1087 my $check_true = 0; 1087 my $check_true = 0;
1088 for my $match (@matchar) { 1088 for my $match (@matchar) {
1089 if ($i % 3 == 0) { 1089 if ($i % 3 == 0) {
1090 return 1 if $check_true && $check_cnts == $check_true;
1090 $check_cnts = 0; 1091 $check_cnts = 0;
1091 $check_true = 0; 1092 $check_true = 0;
1092 } 1093 }
1093 1094
1094 if ($match =~ m/^\s*$/) { 1095 if ($match =~ m/^\s*$/) {
1108 and $check_true++; 1109 and $check_true++;
1109 } 1110 }
1110 $i++; 1111 $i++;
1111 } 1112 }
1112 #d# warn "CHECK $check_true | $check_cnts | [".(join ',', @matchar).":".join (",", ($thing->name, $thing->title, $thing->arch->name))."\n"; 1113 #d# warn "CHECK $check_true | $check_cnts | [".(join ',', @matchar).":".join (",", ($thing->name, $thing->title, $thing->arch->name))."\n";
1113 if ($check_true && $check_cnts == $check_true) { 1114 return 1 if $check_true && $check_cnts == $check_true;
1114 return 1;
1115 }
1116 return 0; 1115 return 0;
1117} 1116}
1118 1117
1119sub grep_for_match { 1118sub grep_for_match {
1120 my ($ingred, $group, @matchar) = @_; 1119 my ($ingred, $group, @matchar) = @_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines