ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/gde/GCE/Util.pm
(Generate patch)

Comparing deliantra/gde/GCE/Util.pm (file contents):
Revision 1.8 by elmex, Fri Mar 17 17:59:43 2006 UTC vs.
Revision 1.9 by elmex, Mon Mar 20 02:53:49 2006 UTC

24sub map2abs { 24sub map2abs {
25 my ($dest, $mape) = @_; 25 my ($dest, $mape) = @_;
26 26
27 my $dir; 27 my $dir;
28 if (File::Spec->file_name_is_absolute($dest)) { 28 if (File::Spec->file_name_is_absolute($dest)) {
29 $dir = catdir ($Crossfire::LIB, 'maps', $dest); 29 $dir = catdir ($CFG->{MAPDIR}, $dest);
30 } else { 30 } else {
31 my ($v, $p, $f) = File::Spec->splitpath ($mape->{path}); 31 my ($v, $p, $f) = File::Spec->splitpath ($mape->{path});
32 $dir = File::Spec->rel2abs ($dest, File::Spec->catpath ($v, $p)); 32 $dir = File::Spec->rel2abs ($dest, File::Spec->catpath ($v, $p));
33 } 33 }
34 return $dir; 34 return $dir;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines