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

Comparing deliantra/Deliantra/Deliantra/MapWidget.pm (file contents):
Revision 1.20 by root, Sun Feb 12 18:22:01 2006 UTC vs.
Revision 1.21 by root, Sun Feb 12 18:24:17 2006 UTC

415} 415}
416 416
417sub get { 417sub get {
418 my ($self, $x, $y) = @_; 418 my ($self, $x, $y) = @_;
419 419
420 return unless $x >= 0 && $x < $self->{map}{width}
421 && $y >= 0 && $y < $self->{map}{height};
422
420 Storable::dclone $self->{map}{map}[$x][$y] || [] 423 Storable::dclone $self->{map}{map}[$x][$y] || []
421} 424}
422 425
423sub set { 426sub set {
424 my ($self, $x, $y, $as) = @_; 427 my ($self, $x, $y, $as) = @_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines