{"action":"created","issue":{"url":"https://api.github.com/repos/MailRuChamps/miniaicups/issues/184","repository_url":"https://api.github.com/repos/MailRuChamps/miniaicups","labels_url":"https://api.github.com/repos/MailRuChamps/miniaicups/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/MailRuChamps/miniaicups/issues/184/comments","events_url":"https://api.github.com/repos/MailRuChamps/miniaicups/issues/184/events","html_url":"https://github.com/MailRuChamps/miniaicups/pull/184","id":314466210,"number":184,"title":"FIX: Direct::limit","user":{"login":"adler3d","id":2088343,"avatar_url":"https://avatars0.githubusercontent.com/u/2088343?v=4","gravatar_id":"","url":"https://api.github.com/users/adler3d","html_url":"https://github.com/adler3d","followers_url":"https://api.github.com/users/adler3d/followers","following_url":"https://api.github.com/users/adler3d/following{/other_user}","gists_url":"https://api.github.com/users/adler3d/gists{/gist_id}","starred_url":"https://api.github.com/users/adler3d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adler3d/subscriptions","organizations_url":"https://api.github.com/users/adler3d/orgs","repos_url":"https://api.github.com/users/adler3d/repos","events_url":"https://api.github.com/users/adler3d/events{/privacy}","received_events_url":"https://api.github.com/users/adler3d/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-16T00:16:18Z","updated_at":"2018-04-16T00:38:29Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/MailRuChamps/miniaicups/pulls/184","html_url":"https://github.com/MailRuChamps/miniaicups/pull/184","diff_url":"https://github.com/MailRuChamps/miniaicups/pull/184.diff","patch_url":"https://github.com/MailRuChamps/miniaicups/pull/184.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/MailRuChamps/miniaicups/issues/comments/381451133","html_url":"https://github.com/MailRuChamps/miniaicups/pull/184#issuecomment-381451133","issue_url":"https://api.github.com/repos/MailRuChamps/miniaicups/issues/184","id":381451133,"user":{"login":"adler3d","id":2088343,"avatar_url":"https://avatars0.githubusercontent.com/u/2088343?v=4","gravatar_id":"","url":"https://api.github.com/users/adler3d","html_url":"https://github.com/adler3d","followers_url":"https://api.github.com/users/adler3d/followers","following_url":"https://api.github.com/users/adler3d/following{/other_user}","gists_url":"https://api.github.com/users/adler3d/gists{/gist_id}","starred_url":"https://api.github.com/users/adler3d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adler3d/subscriptions","organizations_url":"https://api.github.com/users/adler3d/orgs","repos_url":"https://api.github.com/users/adler3d/repos","events_url":"https://api.github.com/users/adler3d/events{/privacy}","received_events_url":"https://api.github.com/users/adler3d/received_events","type":"User","site_admin":false},"created_at":"2018-04-16T00:38:29Z","updated_at":"2018-04-16T00:38:29Z","author_association":"CONTRIBUTOR","body":"хотя если идея в том, чтобы запретить параллельное движение, то тогда можно переписать метод так:\r\n```\r\nauto radius_vector=(direct.pos-map_center);\r\nif(radius_vector.length()>some_const)direct.pos=map_center+radius_vector.norm()*some_const;\r\n```\r\n\r\nгде some_const - максимальное расстояние от центра карты на которое может указывать direct.pos"}}
{"actor":{"display_login":"adler3d"}}