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.152 by root, Mon Aug 13 14:15:09 2007 UTC vs.
Revision 1.153 by root, Mon Aug 13 14:24:17 2007 UTC

552 my $map_info = delete $self->{map_info} 552 my $map_info = delete $self->{map_info}
553 or return; 553 or return;
554 554
555 my ($hash, $x, $y, $w, $h) = @$map_info; 555 my ($hash, $x, $y, $w, $h) = @$map_info;
556 556
557 my $data = $self->{map}->get_rect ($x, $y, $w, $h); 557 my $data = Compress::LZF::compress $self->{map}->get_rect ($x, $y, $w, $h);
558 $self->{map_cache_new}{$hash} = \$data;
558 CFPlus::DB::put $self->{mapcache} => $hash => Compress::LZF::compress $data, sub { }; 559 CFPlus::DB::put $self->{mapcache} => $hash => $data, sub { };
559 #warn sprintf "SAVEmap[%s] length %d\n", $hash, length $data;#d#
560} 560}
561 561
562sub map_clear { 562sub map_clear {
563 my ($self) = @_; 563 my ($self) = @_;
564 564

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines