Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layer-farms-find: limit farm portals to desired min level #1308

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 21, 2019

  1. layer-farms-find: limit farm portals to desired min level

    Portals listed as possible farm portals should be at least the minlevel. This fixes a a crazy corner case I came across:
    4 farm-level portals in a cluster, two level 1 portals about 400m east, then another farm-level portal 400m east of the level 1 portals.
    The current algorithm thinks the 2 level 1 portals are a farm (since 5 farm-level portals are within 500m radius of the level 1 portals) and draws a circle only around the two level 1 portals.
    
    Alternatively, this check can be placed in the "getNearbyPortalCount" function.
    maqifrnswa committed Oct 21, 2019
    Configuration menu
    Copy the full SHA
    3e9cb34 View commit details
    Browse the repository at this point in the history