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.9 by elmex, Sun Feb 4 11:17:52 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 if ($i % 3 == 0) {
1089 $check_cnts = 0;
1090 $check_true = 0;
1091 }
1092
1088 if ($match =~ m/^\s*$/) { 1093 if ($match =~ m/^\s*$/) {
1089 $i++; 1094 $i++;
1090 next; 1095 next;
1091 } 1096 }
1092 1097
1101 $thing->arch->name eq $match 1106 $thing->arch->name eq $match
1102 and $check_true++; 1107 and $check_true++;
1103 } 1108 }
1104 $i++; 1109 $i++;
1105 } 1110 }
1111 #d# warn "CHECK $check_true | $check_cnts | [".(join ',', @matchar).":".join (",", ($thing->name, $thing->title, $thing->arch->name))."\n";
1106 if ($check_true && $check_cnts == $check_true) { 1112 if ($check_true && $check_cnts == $check_true) {
1107 return 1; 1113 return 1;
1108 } 1114 }
1109 return 0; 1115 return 0;
1110} 1116}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines