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

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.302 by root, Tue Jul 10 16:23:59 2007 UTC vs.
Revision 1.303 by root, Wed Jul 11 15:57:31 2007 UTC

2764 2764
2765 while (my ($name, $info) = each %$res) { 2765 while (my ($name, $info) = each %$res) {
2766 my $meta = $enc->encode ({ 2766 my $meta = $enc->encode ({
2767 name => $name, 2767 name => $name,
2768 type => $info->{type}, 2768 type => $info->{type},
2769 copyright => $info->{copyright}, 2769 copyright => $info->{copyright}, #TODO#
2770 }); 2770 });
2771 my $data = pack "(w/a*)*", $meta, $info->{data}; 2771 my $data = pack "(w/a*)*", $meta, $info->{data};
2772 my $chk = Digest::MD5::md5 "$info->{chksum},$meta"; # mangle data checksum and metadata 2772 my $chk = Digest::MD5::md5 "$info->{chksum},$meta"; # mangle data checksum and metadata
2773 2773
2774 use Data::Dumper; warn Dumper substr $data, 0, 100;#d#
2775
2776 my $idx = (cf::face::find $name) || cf::face::alloc $name; 2774 my $idx = (cf::face::find $name) || cf::face::alloc $name;
2777 cf::face::set_type $idx, 1; 2775 cf::face::set_type $idx, 1;
2778 cf::face::set_data $idx, 0, $data, $chk; 2776 cf::face::set_data $idx, 0, $data, $chk;
2779 2777
2780 # TODO
2781 cf::cede_to_tick; 2778 cf::cede_to_tick;
2782 } 2779 }
2783 } 2780 }
2784 2781
2785 1 2782 1

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines