ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/map-per-player.ext
(Generate patch)

Comparing deliantra/server/ext/map-per-player.ext (file contents):
Revision 1.6 by root, Thu Jan 18 16:20:40 2007 UTC vs.
Revision 1.7 by root, Mon Jan 29 17:57:22 2007 UTC

20} 20}
21 21
22sub load_path { 22sub load_path {
23 my ($self) = @_; 23 my ($self) = @_;
24 24
25 sprintf "%s/%s/%s", cf::datadir, cf::mapdir, $self->{orig_path} 25 sprintf "%s/%s/%s.map", cf::datadir, cf::mapdir, $self->{orig_path}
26} 26}
27 27
28sub save_path { 28sub save_path {
29 my ($self) = @_; 29 my ($self) = @_;
30 30
31 (my $path = $_[0]{orig_path}) =~ s/\//$PATH_SEP/g; 31 (my $path = $_[0]{orig_path}) =~ s/\//$PATH_SEP/g;
32 sprintf "%s/%s/%s/%s", cf::localdir, cf::playerdir, $self->{user}, $path 32 sprintf "%s/%s/%s/%s.map", cf::localdir, cf::playerdir, $self->{user}, $path
33} 33}
34 34
35sub uniq_path { 35sub uniq_path {
36 undef 36 undef
37} 37}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines