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.10 by elmex, Sun Feb 4 11:44:43 2007 UTC vs.
Revision 1.11 by elmex, Sun Feb 4 11:57:22 2007 UTC

1083 1083
1084 my $i = 0; 1084 my $i = 0;
1085 my $check_cnts = 0; 1085 my $check_cnts = 0;
1086 my $check_true = 0; 1086 my $check_true = 0;
1087 for my $match (@matchar) { 1087 for my $match (@matchar) {
1088 $check_cnts = 0 if $i % 3 == 0; 1088 if ($i % 3 == 0) {
1089 $check_cnts = 0;
1090 $check_true = 0;
1091 }
1089 1092
1090 if ($match =~ m/^\s*$/) { 1093 if ($match =~ m/^\s*$/) {
1091 $i++; 1094 $i++;
1092 next; 1095 next;
1093 } 1096 }
1103 $thing->arch->name eq $match 1106 $thing->arch->name eq $match
1104 and $check_true++; 1107 and $check_true++;
1105 } 1108 }
1106 $i++; 1109 $i++;
1107 } 1110 }
1111 #d# warn "CHECK $check_true | $check_cnts | [".(join ',', @matchar).":".join (",", ($thing->name, $thing->title, $thing->arch->name))."\n";
1108 if ($check_true && $check_cnts == $check_true) { 1112 if ($check_true && $check_cnts == $check_true) {
1109 return 1; 1113 return 1;
1110 } 1114 }
1111 return 0; 1115 return 0;
1112} 1116}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines