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

Comparing deliantra/Deliantra/Deliantra.pm (file contents):
Revision 1.108 by elmex, Wed May 23 20:21:28 2007 UTC vs.
Revision 1.110 by root, Mon May 28 21:33:28 2007 UTC

4 4
5=cut 5=cut
6 6
7package Crossfire; 7package Crossfire;
8 8
9our $VERSION = '0.98'; 9our $VERSION = '0.99';
10 10
11use strict; 11use strict;
12 12
13use base 'Exporter'; 13use base 'Exporter';
14 14
352 # check whether attachment is the same as in the archetype 352 # check whether attachment is the same as in the archetype
353 if (exists $ob->{attach}) { 353 if (exists $ob->{attach}) {
354 my $arch = $ARCH{$ob->{_name}}; 354 my $arch = $ARCH{$ob->{_name}};
355 my $js = JSON::XS->new->utf8->canonical (1); 355 my $js = JSON::XS->new->utf8->canonical (1);
356 356
357 if (defined $arch->{attach}
357 if ($js->encode ($js->decode ($ob->{attach})) eq $js->encode ($arch->{attach})) { 358 && $js->encode ($js->decode ($ob->{attach})) eq $js->encode ($arch->{attach})) {
358 delete $ob->{attach} 359 delete $ob->{attach}
359 } 360 }
360 } 361 }
361 362
362 # color_fg is used as default for magicmap if magicmap does not exist 363 # color_fg is used as default for magicmap if magicmap does not exist

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines