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.56 by root, Wed Aug 30 08:28:33 2006 UTC vs.
Revision 1.58 by root, Wed Aug 30 12:08:15 2006 UTC

764 defined $path or return; 764 defined $path or return;
765 765
766 unlink "$path.pst"; 766 unlink "$path.pst";
767}; 767};
768 768
769# old style persistent data, TODO: remove #d#
770*cf::mapsupport::on_swapin = sub {
771 my ($map) = @_;
772
773 my $path = $map->tmpname;
774 $path = $map->path unless defined $path;
775
776 warn "$path.cfperl\n";#d#
777
778 open my $fh, "<:raw", "$path.cfperl"
779 or return; # no perl data
780
781 my $data = Storable::thaw do { local $/; <$fh> };
782
783 $data->{version} <= 1
784 or return; # too new
785
786 $map->_set_obs ($data->{obs});
787 $map->invoke (EVENT_MAP_UPGRADE);
788};
789
790attach_to_maps prio => -10000, package => cf::mapsupport::; 769attach_to_maps prio => -10000, package => cf::mapsupport::;
791 770
792############################################################################# 771#############################################################################
793# load/save perl data associated with player->ob objects 772# load/save perl data associated with player->ob objects
794 773

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines