--- deliantra/server/ext/map-per-player.ext 2007/01/29 17:57:22 1.7 +++ deliantra/server/ext/map-per-player.ext 2010/05/04 21:45:42 1.12 @@ -1,4 +1,4 @@ -#! perl # MANDATORY +#! perl # mandatory cf::map->register (qr{^~([^/]+)(/.*)}); @@ -7,14 +7,12 @@ $self->{user} = $1; $self->{orig_path} = $2; - $self->{deny_reset} = 1; #d# for now } sub thawer_merge { # we have to keep some variables in memory intact local $_[0]{user}; local $_[0]{orig_path}; - local $_[0]{deny_reset}; $_[0]->SUPER::thawer_merge ($_[1]); } @@ -22,14 +20,14 @@ sub load_path { my ($self) = @_; - sprintf "%s/%s/%s.map", 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.map", cf::localdir, cf::playerdir, $self->{user}, $path + "$cf::PLAYERDIR/$self->{user}/$path.map" } sub uniq_path { @@ -48,12 +46,3 @@ 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 -