ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/Protocol.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/Protocol.pm (file contents):
Revision 1.126 by root, Sun Jul 22 19:34:58 2007 UTC vs.
Revision 1.127 by root, Mon Jul 23 15:30:45 2007 UTC

212 or return; 212 or return;
213 213
214 my $attr = $arg->{attr}; 214 my $attr = $arg->{attr};
215 215
216 for (my $i = 0; $i < $#$attr; $i += 2) { 216 for (my $i = 0; $i < $#$attr; $i += 2) {
217 $w->{$attr->[$i]} = $attr->[$i+1]; 217 my ($member, $value) = @$attr[$i, $i+1];
218 if (defined $value) {
219 $w->{$member} = $value;
220 } else {
221 delete $w->{$member};
222 }
218 $w->{parent}->realloc if $attr->[$i] =~ /^c_/ && $w->{visible};#d# really? 223 $w->{parent}->realloc if $member =~ /^c_/ && $w->{visible};
219 } 224 }
220 }); 225 });
221 226
222 # widget get 227 # widget get
223 $self->connect_ext (w_g => sub { 228 $self->connect_ext (w_g => sub {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines