{"action":"created","comment":{"url":"https://api.github.com/repos/bjorn/tiled/pulls/comments/125093687","pull_request_review_id":47453254,"id":125093687,"diff_hunk":"@@ -127,7 +183,12 @@ void Tiled::TileLayer::setCell(int x, int y, const Cell &cell)\n         }\n     }\n \n-    existingCell = cell;\n+    mMap[block(x, y)]->setCell(x%16, y%16, cell);","path":"src/libtiled/tilelayer.cpp","position":118,"original_position":118,"commit_id":"2d1a3c8e779e378915f1f51b544d609d7b1daabf","original_commit_id":"2d1a3c8e779e378915f1f51b544d609d7b1daabf","user":{"login":"Ablu","id":741061,"avatar_url":"https://avatars2.githubusercontent.com/u/741061?v=3","gravatar_id":"","url":"https://api.github.com/users/Ablu","html_url":"https://github.com/Ablu","followers_url":"https://api.github.com/users/Ablu/followers","following_url":"https://api.github.com/users/Ablu/following{/other_user}","gists_url":"https://api.github.com/users/Ablu/gists{/gist_id}","starred_url":"https://api.github.com/users/Ablu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ablu/subscriptions","organizations_url":"https://api.github.com/users/Ablu/orgs","repos_url":"https://api.github.com/users/Ablu/repos","events_url":"https://api.github.com/users/Ablu/events{/privacy}","received_events_url":"https://api.github.com/users/Ablu/received_events","type":"User","site_admin":false},"body":"spaces around operators again","created_at":"2017-06-30T17:47:30Z","updated_at":"2017-06-30T18:03:19Z","html_url":"https://github.com/bjorn/tiled/pull/1635#discussion_r125093687","pull_request_url":"https://api.github.com/repos/bjorn/tiled/pulls/1635","_links":{"self":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/comments/125093687"},"html":{"href":"https://github.com/bjorn/tiled/pull/1635#discussion_r125093687"},"pull_request":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/1635"}}},"pull_request":{"url":"https://api.github.com/repos/bjorn/tiled/pulls/1635","id":128347391,"html_url":"https://github.com/bjorn/tiled/pull/1635","diff_url":"https://github.com/bjorn/tiled/pull/1635.diff","patch_url":"https://github.com/bjorn/tiled/pull/1635.patch","issue_url":"https://api.github.com/repos/bjorn/tiled/issues/1635","number":1635,"state":"open","locked":false,"title":"Supporting Infinite Maps","user":{"login":"ketanhwr","id":2878908,"avatar_url":"https://avatars3.githubusercontent.com/u/2878908?v=3","gravatar_id":"","url":"https://api.github.com/users/ketanhwr","html_url":"https://github.com/ketanhwr","followers_url":"https://api.github.com/users/ketanhwr/followers","following_url":"https://api.github.com/users/ketanhwr/following{/other_user}","gists_url":"https://api.github.com/users/ketanhwr/gists{/gist_id}","starred_url":"https://api.github.com/users/ketanhwr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ketanhwr/subscriptions","organizations_url":"https://api.github.com/users/ketanhwr/orgs","repos_url":"https://api.github.com/users/ketanhwr/repos","events_url":"https://api.github.com/users/ketanhwr/events{/privacy}","received_events_url":"https://api.github.com/users/ketanhwr/received_events","type":"User","site_admin":false},"body":"In progress PR for #260.\r\n\r\nCurrently I've added a class `Block` which is a 16x16 grid of cells. This is used in `TileLayer` and now, TileLayer no longes needs `mGrid`, and only stores instances of `Block`. The blocks are stored in a `QMap` and these blocks get deleted when they're empty.","created_at":"2017-06-30T11:09:22Z","updated_at":"2017-06-30T18:03:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12da53f4cfc6f81a3da4720a5eedbada64f425d9","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/bjorn/tiled/pulls/1635/commits","review_comments_url":"https://api.github.com/repos/bjorn/tiled/pulls/1635/comments","review_comment_url":"https://api.github.com/repos/bjorn/tiled/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bjorn/tiled/issues/1635/comments","statuses_url":"https://api.github.com/repos/bjorn/tiled/statuses/2d1a3c8e779e378915f1f51b544d609d7b1daabf","head":{"label":"ketanhwr:infinite-maps","ref":"infinite-maps","sha":"2d1a3c8e779e378915f1f51b544d609d7b1daabf","user":{"login":"ketanhwr","id":2878908,"avatar_url":"https://avatars3.githubusercontent.com/u/2878908?v=3","gravatar_id":"","url":"https://api.github.com/users/ketanhwr","html_url":"https://github.com/ketanhwr","followers_url":"https://api.github.com/users/ketanhwr/followers","following_url":"https://api.github.com/users/ketanhwr/following{/other_user}","gists_url":"https://api.github.com/users/ketanhwr/gists{/gist_id}","starred_url":"https://api.github.com/users/ketanhwr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ketanhwr/subscriptions","organizations_url":"https://api.github.com/users/ketanhwr/orgs","repos_url":"https://api.github.com/users/ketanhwr/repos","events_url":"https://api.github.com/users/ketanhwr/events{/privacy}","received_events_url":"https://api.github.com/users/ketanhwr/received_events","type":"User","site_admin":false},"repo":{"id":83340339,"name":"tiled","full_name":"ketanhwr/tiled","owner":{"login":"ketanhwr","id":2878908,"avatar_url":"https://avatars3.githubusercontent.com/u/2878908?v=3","gravatar_id":"","url":"https://api.github.com/users/ketanhwr","html_url":"https://github.com/ketanhwr","followers_url":"https://api.github.com/users/ketanhwr/followers","following_url":"https://api.github.com/users/ketanhwr/following{/other_user}","gists_url":"https://api.github.com/users/ketanhwr/gists{/gist_id}","starred_url":"https://api.github.com/users/ketanhwr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ketanhwr/subscriptions","organizations_url":"https://api.github.com/users/ketanhwr/orgs","repos_url":"https://api.github.com/users/ketanhwr/repos","events_url":"https://api.github.com/users/ketanhwr/events{/privacy}","received_events_url":"https://api.github.com/users/ketanhwr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ketanhwr/tiled","description":"A generic tile map editor","fork":true,"url":"https://api.github.com/repos/ketanhwr/tiled","forks_url":"https://api.github.com/repos/ketanhwr/tiled/forks","keys_url":"https://api.github.com/repos/ketanhwr/tiled/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ketanhwr/tiled/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ketanhwr/tiled/teams","hooks_url":"https://api.github.com/repos/ketanhwr/tiled/hooks","issue_events_url":"https://api.github.com/repos/ketanhwr/tiled/issues/events{/number}","events_url":"https://api.github.com/repos/ketanhwr/tiled/events","assignees_url":"https://api.github.com/repos/ketanhwr/tiled/assignees{/user}","branches_url":"https://api.github.com/repos/ketanhwr/tiled/branches{/branch}","tags_url":"https://api.github.com/repos/ketanhwr/tiled/tags","blobs_url":"https://api.github.com/repos/ketanhwr/tiled/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ketanhwr/tiled/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ketanhwr/tiled/git/refs{/sha}","trees_url":"https://api.github.com/repos/ketanhwr/tiled/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ketanhwr/tiled/statuses/{sha}","languages_url":"https://api.github.com/repos/ketanhwr/tiled/languages","stargazers_url":"https://api.github.com/repos/ketanhwr/tiled/stargazers","contributors_url":"https://api.github.com/repos/ketanhwr/tiled/contributors","subscribers_url":"https://api.github.com/repos/ketanhwr/tiled/subscribers","subscription_url":"https://api.github.com/repos/ketanhwr/tiled/subscription","commits_url":"https://api.github.com/repos/ketanhwr/tiled/commits{/sha}","git_commits_url":"https://api.github.com/repos/ketanhwr/tiled/git/commits{/sha}","comments_url":"https://api.github.com/repos/ketanhwr/tiled/comments{/number}","issue_comment_url":"https://api.github.com/repos/ketanhwr/tiled/issues/comments{/number}","contents_url":"https://api.github.com/repos/ketanhwr/tiled/contents/{+path}","compare_url":"https://api.github.com/repos/ketanhwr/tiled/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ketanhwr/tiled/merges","archive_url":"https://api.github.com/repos/ketanhwr/tiled/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ketanhwr/tiled/downloads","issues_url":"https://api.github.com/repos/ketanhwr/tiled/issues{/number}","pulls_url":"https://api.github.com/repos/ketanhwr/tiled/pulls{/number}","milestones_url":"https://api.github.com/repos/ketanhwr/tiled/milestones{/number}","notifications_url":"https://api.github.com/repos/ketanhwr/tiled/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ketanhwr/tiled/labels{/name}","releases_url":"https://api.github.com/repos/ketanhwr/tiled/releases{/id}","deployments_url":"https://api.github.com/repos/ketanhwr/tiled/deployments","created_at":"2017-02-27T17:57:45Z","updated_at":"2017-06-17T16:59:00Z","pushed_at":"2017-06-30T10:52:44Z","git_url":"git://github.com/ketanhwr/tiled.git","ssh_url":"git@github.com:ketanhwr/tiled.git","clone_url":"https://github.com/ketanhwr/tiled.git","svn_url":"https://github.com/ketanhwr/tiled","homepage":"http://www.mapeditor.org/","size":24706,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bjorn:master","ref":"master","sha":"1679f3fd797eb1b67e1a55898c93889c7e1ba1c9","user":{"login":"bjorn","id":531764,"avatar_url":"https://avatars0.githubusercontent.com/u/531764?v=3","gravatar_id":"","url":"https://api.github.com/users/bjorn","html_url":"https://github.com/bjorn","followers_url":"https://api.github.com/users/bjorn/followers","following_url":"https://api.github.com/users/bjorn/following{/other_user}","gists_url":"https://api.github.com/users/bjorn/gists{/gist_id}","starred_url":"https://api.github.com/users/bjorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjorn/subscriptions","organizations_url":"https://api.github.com/users/bjorn/orgs","repos_url":"https://api.github.com/users/bjorn/repos","events_url":"https://api.github.com/users/bjorn/events{/privacy}","received_events_url":"https://api.github.com/users/bjorn/received_events","type":"User","site_admin":false},"repo":{"id":1418150,"name":"tiled","full_name":"bjorn/tiled","owner":{"login":"bjorn","id":531764,"avatar_url":"https://avatars0.githubusercontent.com/u/531764?v=3","gravatar_id":"","url":"https://api.github.com/users/bjorn","html_url":"https://github.com/bjorn","followers_url":"https://api.github.com/users/bjorn/followers","following_url":"https://api.github.com/users/bjorn/following{/other_user}","gists_url":"https://api.github.com/users/bjorn/gists{/gist_id}","starred_url":"https://api.github.com/users/bjorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjorn/subscriptions","organizations_url":"https://api.github.com/users/bjorn/orgs","repos_url":"https://api.github.com/users/bjorn/repos","events_url":"https://api.github.com/users/bjorn/events{/privacy}","received_events_url":"https://api.github.com/users/bjorn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bjorn/tiled","description":"A generic tile map editor","fork":false,"url":"https://api.github.com/repos/bjorn/tiled","forks_url":"https://api.github.com/repos/bjorn/tiled/forks","keys_url":"https://api.github.com/repos/bjorn/tiled/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bjorn/tiled/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bjorn/tiled/teams","hooks_url":"https://api.github.com/repos/bjorn/tiled/hooks","issue_events_url":"https://api.github.com/repos/bjorn/tiled/issues/events{/number}","events_url":"https://api.github.com/repos/bjorn/tiled/events","assignees_url":"https://api.github.com/repos/bjorn/tiled/assignees{/user}","branches_url":"https://api.github.com/repos/bjorn/tiled/branches{/branch}","tags_url":"https://api.github.com/repos/bjorn/tiled/tags","blobs_url":"https://api.github.com/repos/bjorn/tiled/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bjorn/tiled/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bjorn/tiled/git/refs{/sha}","trees_url":"https://api.github.com/repos/bjorn/tiled/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bjorn/tiled/statuses/{sha}","languages_url":"https://api.github.com/repos/bjorn/tiled/languages","stargazers_url":"https://api.github.com/repos/bjorn/tiled/stargazers","contributors_url":"https://api.github.com/repos/bjorn/tiled/contributors","subscribers_url":"https://api.github.com/repos/bjorn/tiled/subscribers","subscription_url":"https://api.github.com/repos/bjorn/tiled/subscription","commits_url":"https://api.github.com/repos/bjorn/tiled/commits{/sha}","git_commits_url":"https://api.github.com/repos/bjorn/tiled/git/commits{/sha}","comments_url":"https://api.github.com/repos/bjorn/tiled/comments{/number}","issue_comment_url":"https://api.github.com/repos/bjorn/tiled/issues/comments{/number}","contents_url":"https://api.github.com/repos/bjorn/tiled/contents/{+path}","compare_url":"https://api.github.com/repos/bjorn/tiled/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bjorn/tiled/merges","archive_url":"https://api.github.com/repos/bjorn/tiled/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bjorn/tiled/downloads","issues_url":"https://api.github.com/repos/bjorn/tiled/issues{/number}","pulls_url":"https://api.github.com/repos/bjorn/tiled/pulls{/number}","milestones_url":"https://api.github.com/repos/bjorn/tiled/milestones{/number}","notifications_url":"https://api.github.com/repos/bjorn/tiled/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bjorn/tiled/labels{/name}","releases_url":"https://api.github.com/repos/bjorn/tiled/releases{/id}","deployments_url":"https://api.github.com/repos/bjorn/tiled/deployments","created_at":"2011-02-27T15:18:22Z","updated_at":"2017-06-30T15:48:02Z","pushed_at":"2017-06-30T11:09:23Z","git_url":"git://github.com/bjorn/tiled.git","ssh_url":"git@github.com:bjorn/tiled.git","clone_url":"https://github.com/bjorn/tiled.git","svn_url":"https://github.com/bjorn/tiled","homepage":"http://www.mapeditor.org/","size":25295,"stargazers_count":4765,"watchers_count":4765,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1027,"mirror_url":null,"open_issues_count":356,"forks":1027,"open_issues":356,"watchers":4765,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/1635"},"html":{"href":"https://github.com/bjorn/tiled/pull/1635"},"issue":{"href":"https://api.github.com/repos/bjorn/tiled/issues/1635"},"comments":{"href":"https://api.github.com/repos/bjorn/tiled/issues/1635/comments"},"review_comments":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/1635/comments"},"review_comment":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/1635/commits"},"statuses":{"href":"https://api.github.com/repos/bjorn/tiled/statuses/2d1a3c8e779e378915f1f51b544d609d7b1daabf"}}}}
{"actor":{"display_login":"Ablu"}}