{"action":"created","comment":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/comments/174047026","pull_request_review_id":103331943,"id":174047026,"diff_hunk":"@@ -52,24 +52,30 @@ constexpr sint32 COORDS_NULL = -1;\n  * Tile coordinates use 1 x/y increment per tile.\n  * Regular ('big', 'sprite') coordinates use 32 x/y increments per tile.\n  * */\n-struct TileCoordsXY\n+struct CoordsXY\n {\n     sint32 x, y;\n };\n \n-struct CoordsXY\n+struct TileCoordsXY\n {\n-    sint32 x, y;\n+    TileCoordsXY() = default;\n+    TileCoordsXY(sint32 x_, sint32 y_) : x(x_), y(y_) {}\n+    explicit TileCoordsXY(CoordsXY c) : x(c.x/32), y(c.y/32) {}\n+    sint32 x = 0, y = 0;\n };\n \n-struct TileCoordsXYZ\n+struct CoordsXYZ\n {\n     sint32 x, y, z;\n };\n \n-struct CoordsXYZ\n+struct TileCoordsXYZ\n {\n-    sint32 x, y, z;\n+    TileCoordsXYZ() = default;\n+    TileCoordsXYZ(sint32 x_, sint32 y_, sint32 z_) : x(x_), y(y_), z(z_) {}\n+    explicit TileCoordsXYZ(CoordsXYZ c) : x(c.x/32), y(c.y/32), z(c.z/8) {}","path":"src/openrct2/world/Location.hpp","position":32,"original_position":32,"commit_id":"c826908e0ddf47ae226d0d9572860e33e172eafb","original_commit_id":"c826908e0ddf47ae226d0d9572860e33e172eafb","user":{"login":"Gymnasiast","id":1478678,"avatar_url":"https://avatars2.githubusercontent.com/u/1478678?v=4","gravatar_id":"","url":"https://api.github.com/users/Gymnasiast","html_url":"https://github.com/Gymnasiast","followers_url":"https://api.github.com/users/Gymnasiast/followers","following_url":"https://api.github.com/users/Gymnasiast/following{/other_user}","gists_url":"https://api.github.com/users/Gymnasiast/gists{/gist_id}","starred_url":"https://api.github.com/users/Gymnasiast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gymnasiast/subscriptions","organizations_url":"https://api.github.com/users/Gymnasiast/orgs","repos_url":"https://api.github.com/users/Gymnasiast/repos","events_url":"https://api.github.com/users/Gymnasiast/events{/privacy}","received_events_url":"https://api.github.com/users/Gymnasiast/received_events","type":"User","site_admin":false},"body":"See previous point.","created_at":"2018-03-13T08:30:34Z","updated_at":"2018-03-13T08:30:34Z","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/7261#discussion_r174047026","pull_request_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/7261","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/comments/174047026"},"html":{"href":"https://github.com/OpenRCT2/OpenRCT2/pull/7261#discussion_r174047026"},"pull_request":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/7261"}}},"pull_request":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/7261","id":174192719,"html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/7261","diff_url":"https://github.com/OpenRCT2/OpenRCT2/pull/7261.diff","patch_url":"https://github.com/OpenRCT2/OpenRCT2/pull/7261.patch","issue_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/7261","number":7261,"state":"open","locked":false,"title":"Document/clarify code, add (explicit) constructor from Coords to TileCoords","user":{"login":"NickNick","id":239522,"avatar_url":"https://avatars0.githubusercontent.com/u/239522?v=4","gravatar_id":"","url":"https://api.github.com/users/NickNick","html_url":"https://github.com/NickNick","followers_url":"https://api.github.com/users/NickNick/followers","following_url":"https://api.github.com/users/NickNick/following{/other_user}","gists_url":"https://api.github.com/users/NickNick/gists{/gist_id}","starred_url":"https://api.github.com/users/NickNick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickNick/subscriptions","organizations_url":"https://api.github.com/users/NickNick/orgs","repos_url":"https://api.github.com/users/NickNick/repos","events_url":"https://api.github.com/users/NickNick/events{/privacy}","received_events_url":"https://api.github.com/users/NickNick/received_events","type":"User","site_admin":false},"body":"While not part of something bigger, while reading through the code and trying to clear things up I made these changes I thought were worthwhile to keep.","created_at":"2018-03-10T22:25:59Z","updated_at":"2018-03-13T08:30:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70a71655814a0a81ecd8fa47f1499d8ffaf6fc93","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/7261/commits","review_comments_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/7261/comments","review_comment_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/7261/comments","statuses_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/statuses/c826908e0ddf47ae226d0d9572860e33e172eafb","head":{"label":"NickNick:develop","ref":"develop","sha":"c826908e0ddf47ae226d0d9572860e33e172eafb","user":{"login":"NickNick","id":239522,"avatar_url":"https://avatars0.githubusercontent.com/u/239522?v=4","gravatar_id":"","url":"https://api.github.com/users/NickNick","html_url":"https://github.com/NickNick","followers_url":"https://api.github.com/users/NickNick/followers","following_url":"https://api.github.com/users/NickNick/following{/other_user}","gists_url":"https://api.github.com/users/NickNick/gists{/gist_id}","starred_url":"https://api.github.com/users/NickNick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickNick/subscriptions","organizations_url":"https://api.github.com/users/NickNick/orgs","repos_url":"https://api.github.com/users/NickNick/repos","events_url":"https://api.github.com/users/NickNick/events{/privacy}","received_events_url":"https://api.github.com/users/NickNick/received_events","type":"User","site_admin":false},"repo":{"id":124651027,"name":"OpenRCT2","full_name":"NickNick/OpenRCT2","owner":{"login":"NickNick","id":239522,"avatar_url":"https://avatars0.githubusercontent.com/u/239522?v=4","gravatar_id":"","url":"https://api.github.com/users/NickNick","html_url":"https://github.com/NickNick","followers_url":"https://api.github.com/users/NickNick/followers","following_url":"https://api.github.com/users/NickNick/following{/other_user}","gists_url":"https://api.github.com/users/NickNick/gists{/gist_id}","starred_url":"https://api.github.com/users/NickNick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickNick/subscriptions","organizations_url":"https://api.github.com/users/NickNick/orgs","repos_url":"https://api.github.com/users/NickNick/repos","events_url":"https://api.github.com/users/NickNick/events{/privacy}","received_events_url":"https://api.github.com/users/NickNick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NickNick/OpenRCT2","description":"An open source re-implementation of RollerCoaster Tycoon 2 🎢","fork":true,"url":"https://api.github.com/repos/NickNick/OpenRCT2","forks_url":"https://api.github.com/repos/NickNick/OpenRCT2/forks","keys_url":"https://api.github.com/repos/NickNick/OpenRCT2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NickNick/OpenRCT2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NickNick/OpenRCT2/teams","hooks_url":"https://api.github.com/repos/NickNick/OpenRCT2/hooks","issue_events_url":"https://api.github.com/repos/NickNick/OpenRCT2/issues/events{/number}","events_url":"https://api.github.com/repos/NickNick/OpenRCT2/events","assignees_url":"https://api.github.com/repos/NickNick/OpenRCT2/assignees{/user}","branches_url":"https://api.github.com/repos/NickNick/OpenRCT2/branches{/branch}","tags_url":"https://api.github.com/repos/NickNick/OpenRCT2/tags","blobs_url":"https://api.github.com/repos/NickNick/OpenRCT2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NickNick/OpenRCT2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NickNick/OpenRCT2/git/refs{/sha}","trees_url":"https://api.github.com/repos/NickNick/OpenRCT2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NickNick/OpenRCT2/statuses/{sha}","languages_url":"https://api.github.com/repos/NickNick/OpenRCT2/languages","stargazers_url":"https://api.github.com/repos/NickNick/OpenRCT2/stargazers","contributors_url":"https://api.github.com/repos/NickNick/OpenRCT2/contributors","subscribers_url":"https://api.github.com/repos/NickNick/OpenRCT2/subscribers","subscription_url":"https://api.github.com/repos/NickNick/OpenRCT2/subscription","commits_url":"https://api.github.com/repos/NickNick/OpenRCT2/commits{/sha}","git_commits_url":"https://api.github.com/repos/NickNick/OpenRCT2/git/commits{/sha}","comments_url":"https://api.github.com/repos/NickNick/OpenRCT2/comments{/number}","issue_comment_url":"https://api.github.com/repos/NickNick/OpenRCT2/issues/comments{/number}","contents_url":"https://api.github.com/repos/NickNick/OpenRCT2/contents/{+path}","compare_url":"https://api.github.com/repos/NickNick/OpenRCT2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NickNick/OpenRCT2/merges","archive_url":"https://api.github.com/repos/NickNick/OpenRCT2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NickNick/OpenRCT2/downloads","issues_url":"https://api.github.com/repos/NickNick/OpenRCT2/issues{/number}","pulls_url":"https://api.github.com/repos/NickNick/OpenRCT2/pulls{/number}","milestones_url":"https://api.github.com/repos/NickNick/OpenRCT2/milestones{/number}","notifications_url":"https://api.github.com/repos/NickNick/OpenRCT2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NickNick/OpenRCT2/labels{/name}","releases_url":"https://api.github.com/repos/NickNick/OpenRCT2/releases{/id}","deployments_url":"https://api.github.com/repos/NickNick/OpenRCT2/deployments","created_at":"2018-03-10T11:51:48Z","updated_at":"2018-03-10T11:51:54Z","pushed_at":"2018-03-12T18:28:24Z","git_url":"git://github.com/NickNick/OpenRCT2.git","ssh_url":"git@github.com:NickNick/OpenRCT2.git","clone_url":"https://github.com/NickNick/OpenRCT2.git","svn_url":"https://github.com/NickNick/OpenRCT2","homepage":"https://openrct2.io","size":72107,"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,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"OpenRCT2:develop","ref":"develop","sha":"33a6a5a9944961dc191638bbda01f22b92a564d0","user":{"login":"OpenRCT2","id":8473908,"avatar_url":"https://avatars0.githubusercontent.com/u/8473908?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenRCT2","html_url":"https://github.com/OpenRCT2","followers_url":"https://api.github.com/users/OpenRCT2/followers","following_url":"https://api.github.com/users/OpenRCT2/following{/other_user}","gists_url":"https://api.github.com/users/OpenRCT2/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRCT2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRCT2/subscriptions","organizations_url":"https://api.github.com/users/OpenRCT2/orgs","repos_url":"https://api.github.com/users/OpenRCT2/repos","events_url":"https://api.github.com/users/OpenRCT2/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRCT2/received_events","type":"Organization","site_admin":false},"repo":{"id":18348651,"name":"OpenRCT2","full_name":"OpenRCT2/OpenRCT2","owner":{"login":"OpenRCT2","id":8473908,"avatar_url":"https://avatars0.githubusercontent.com/u/8473908?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenRCT2","html_url":"https://github.com/OpenRCT2","followers_url":"https://api.github.com/users/OpenRCT2/followers","following_url":"https://api.github.com/users/OpenRCT2/following{/other_user}","gists_url":"https://api.github.com/users/OpenRCT2/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRCT2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRCT2/subscriptions","organizations_url":"https://api.github.com/users/OpenRCT2/orgs","repos_url":"https://api.github.com/users/OpenRCT2/repos","events_url":"https://api.github.com/users/OpenRCT2/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRCT2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenRCT2/OpenRCT2","description":"An open source re-implementation of RollerCoaster Tycoon 2 🎢","fork":false,"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2","forks_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/forks","keys_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/teams","hooks_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/hooks","issue_events_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/events{/number}","events_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/events","assignees_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/assignees{/user}","branches_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/branches{/branch}","tags_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/tags","blobs_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/languages","stargazers_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/stargazers","contributors_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/contributors","subscribers_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/subscribers","subscription_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/subscription","commits_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/contents/{+path}","compare_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/merges","archive_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/downloads","issues_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues{/number}","pulls_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/labels{/name}","releases_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/releases{/id}","deployments_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/deployments","created_at":"2014-04-01T23:32:25Z","updated_at":"2018-03-13T01:41:50Z","pushed_at":"2018-03-12T23:12:48Z","git_url":"git://github.com/OpenRCT2/OpenRCT2.git","ssh_url":"git@github.com:OpenRCT2/OpenRCT2.git","clone_url":"https://github.com/OpenRCT2/OpenRCT2.git","svn_url":"https://github.com/OpenRCT2/OpenRCT2","homepage":"https://openrct2.io","size":71999,"stargazers_count":5551,"watchers_count":5551,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":607,"mirror_url":null,"archived":false,"open_issues_count":758,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":607,"open_issues":758,"watchers":5551,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/7261"},"html":{"href":"https://github.com/OpenRCT2/OpenRCT2/pull/7261"},"issue":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/7261"},"comments":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/7261/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/7261/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/7261/commits"},"statuses":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/statuses/c826908e0ddf47ae226d0d9572860e33e172eafb"}},"author_association":"NONE"}}
{"actor":{"display_login":"Gymnasiast"}}