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.133 by root, Wed Oct 28 08:51:27 2009 UTC vs.
Revision 1.135 by root, Tue Nov 3 14:56:58 2009 UTC

1=head1 NAME 1=head1 NAME
2 2
3Deliantra - Deliantra suppport module to read/write archetypes, maps etc. 3Deliantra - Deliantra suppport module to read/write archetypes, maps etc.
4
5=over 4
4 6
5=cut 7=cut
6 8
7package Deliantra; 9package Deliantra;
8 10
337 339
338# object as in "Object xxx", i.e. archetypes 340# object as in "Object xxx", i.e. archetypes
339sub normalize_object($) { 341sub normalize_object($) {
340 my ($ob) = @_; 342 my ($ob) = @_;
341 343
344 delete $ob->{editable}; # deprecated
345
342 # convert material bitset to materialname, if possible 346 # convert material bitset to materialname, if possible
343 if (exists $ob->{material}) { 347 if (exists $ob->{material}) {
344 if (!$ob->{material}) { 348 if (!$ob->{material}) {
345 delete $ob->{material}; 349 delete $ob->{material};
346 } elsif (exists $ob->{materialname}) { 350 } elsif (exists $ob->{materialname}) {
987 991
988 \%cache 992 \%cache
989 }; 993 };
990} 994}
991 995
996=back
997
992=head1 AUTHOR 998=head1 AUTHOR
993 999
994 Marc Lehmann <schmorp@schmorp.de> 1000 Marc Lehmann <schmorp@schmorp.de>
995 http://home.schmorp.de/ 1001 http://home.schmorp.de/
996 1002

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines