--- deliantra/server/ext/map-per-player.ext 2007/01/14 02:00:36 1.4 +++ deliantra/server/ext/map-per-player.ext 2007/04/19 11:12:45 1.9 @@ -22,14 +22,14 @@ sub load_path { my ($self) = @_; - sprintf "%s/%s/%s", cf::datadir, cf::mapdir, $self->{orig_path} + "$cf::MAPDIR/$self->{orig_path}.map" } sub save_path { my ($self) = @_; (my $path = $_[0]{orig_path}) =~ s/\//$PATH_SEP/g; - sprintf "%s/%s/%s/%s", cf::localdir, cf::playerdir, $self->{user}, $path + "$cf::PLAYERDIR/$self->{user}/$path.map" } sub uniq_path { @@ -48,5 +48,12 @@ 1 } +sub decay_objects { + # do nothing on per player maps at the moment + # to protect apartments. + # TODO: apartments should be marked as such + # (no reset, no decay etc.) +} + 1