--- deliantra/server/lib/cf.pm 2007/01/28 01:58:37 1.198 +++ deliantra/server/lib/cf.pm 2007/01/29 14:46:01 1.199 @@ -85,6 +85,8 @@ our $EMERGENCY_POSITION; +sub cf::map::normalise; + ############################################################################# =head2 GLOBAL VARIABLES @@ -1080,8 +1082,7 @@ next if /\.(?:pl|pst)$/; next unless /^$PATH_SEP/o; - s/\.map$//; - push @paths, "~" . $pl->ob->name . "/" . $_; + push @paths, cf::map::normalise "~" . $pl->ob->name . "/" . $_; } \@paths @@ -1180,6 +1181,8 @@ $path = "$path"; # make sure its a string + $path =~ s/\.map$//; + # map plan: # # /! non-realised random map exit (special hack!) @@ -1630,8 +1633,7 @@ next if /\.pst$/; next unless /^$PATH_SEP/o; - s/\.map$//; - push @paths, $_; + push @paths, cf::map::normalise $_; } \@paths