--- deliantra/server/ext/map-tags.ext 2007/09/11 13:27:53 1.2 +++ deliantra/server/ext/map-tags.ext 2007/09/11 15:40:01 1.4 @@ -1,6 +1,6 @@ #! perl # mandatory -our $SCHEDULE_INTERVAL = $cf::CFG{extractor_schedule_interval} || 3600; +our $SCHEDULE_INTERVAL = $cf::CFG{extractor_schedule_interval} || 3600; use JSON::XS; @@ -154,22 +154,13 @@ sub find($) { my ($tag) = @_; - my @res; - - utf8::encode $tag; - BDB::db_get $db_target, undef, $tag, my $data; + utf8::encode (my $key = $tag); + BDB::db_get $db_target, undef, $key, my $data; utf8::decode $data; - for my $map ( + map { $_->load; $_->find_tagged_objects ($tag) } grep $_, map { cf::map::find $_ } grep s/^s//, split /\x00/, $data - ) { - $map->load; - - warn "tag<$tag>map<$map>\n";#d# - } - - @res }