--- deliantra/server/ext/map-random.ext 2008/05/04 14:12:37 1.26 +++ deliantra/server/ext/map-random.ext 2008/05/04 19:50:13 1.27 @@ -82,16 +82,14 @@ sub find_style_($$) { my ($path, $difficulty) = @_; - my $mapdir = cf::datadir . "/" . cf::mapdir; - my $map; $map = cf::map::find $path - unless aio_stat "$mapdir/$path.map"; + unless aio_stat "$cf::MAPDIR/$path.map"; unless ($map) { # search files and/or dirs - if (my ($dirs, $nondirs) = aio_scandir "$mapdir/$path/", 1) { + if (my ($dirs, $nondirs) = aio_scandir "$cf::MAPDIR/$path/", 1) { my @entries = sort grep s/\.map$//, @$nondirs; if ($difficulty < 0) {