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

Comparing deliantra/Deliantra/Deliantra/Protocol.pm (file contents):
Revision 1.22 by root, Sat Apr 15 23:58:18 2006 UTC vs.
Revision 1.23 by root, Sun Apr 16 17:03:16 2006 UTC

133 133
134 my ($num, $chksum, $name) = unpack "nNa*", $data; 134 my ($num, $chksum, $name) = unpack "nNa*", $data;
135 135
136 my $face = $self->{face}[$num] = { name => $name, chksum => $chksum }; 136 my $face = $self->{face}[$num] = { name => $name, chksum => $chksum };
137 137
138 if (my $data = $self->face_find ($face)) { 138 if (my $data = $self->face_find ($num, $face)) {
139 $face->{image} = $data; 139 $face->{image} = $data;
140 $self->face_update ($num, $face); 140 $self->face_update ($num, $face);
141 } else { 141 } else {
142 $self->send_queue ("askface $num"); 142 $self->send_queue ("askface $num");
143 } 143 }
517 517
518=cut 518=cut
519 519
520sub face_update { } 520sub face_update { }
521 521
522=item $conn->face_find ($face) [OVERWRITE] 522=item $conn->face_find ($facenum, $facedata) [OVERWRITE]
523 523
524Find and return the png image for the given face, or the empty list if no 524Find and return the png image for the given face, or the empty list if no
525face could be found, in which case it will be requested from the server. 525face could be found, in which case it will be requested from the server.
526 526
527=cut 527=cut

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines