{"action":"closed","issue":{"url":"https://api.github.com/repos/zunath/Contagion_JVM/issues/15","labels_url":"https://api.github.com/repos/zunath/Contagion_JVM/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/zunath/Contagion_JVM/issues/15/comments","events_url":"https://api.github.com/repos/zunath/Contagion_JVM/issues/15/events","html_url":"https://github.com/zunath/Contagion_JVM/issues/15","id":66450745,"number":15,"title":"Structure System: Getting \"nearest\" territory bug","user":{"login":"zunath","id":3136227,"avatar_url":"https://avatars.githubusercontent.com/u/3136227?v=3","gravatar_id":"","url":"https://api.github.com/users/zunath","html_url":"https://github.com/zunath","followers_url":"https://api.github.com/users/zunath/followers","following_url":"https://api.github.com/users/zunath/following{/other_user}","gists_url":"https://api.github.com/users/zunath/gists{/gist_id}","starred_url":"https://api.github.com/users/zunath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zunath/subscriptions","organizations_url":"https://api.github.com/users/zunath/orgs","repos_url":"https://api.github.com/users/zunath/repos","events_url":"https://api.github.com/users/zunath/events{/privacy}","received_events_url":"https://api.github.com/users/zunath/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zunath/Contagion_JVM/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-05T15:35:55Z","updated_at":"2015-04-05T20:24:40Z","closed_at":"2015-04-05T20:24:40Z","body":"- Territory A has 15 meter range\r\n\t- Territory B has 30 meter range\r\n\t- Player builds construction site on edge of territory B\r\n\t\t- Problem: \"Getting nearest territory\" will pick up territory A because \r\n\t\t\t\t  it's 15 meters away versus 30 meters\r\n\t\t- Solution: Change \"get nearest flag\" to load all flags in area ordered by max distance (descending), \r\n\t\t\t\t  generate locations and determine largest territory area target is in"}}