{"action":"created","comment":{"url":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/comments/31468142","id":31468142,"diff_hunk":"@@ -224,6 +224,57 @@ class VoxelCollector {\n  * @ingroup viewport_group\n  */\n struct DrawData {\n+\t/**\n+\t * Default constructor initializing only the fields that mostly always have the same value.\n+\t */\n+\tDrawData()\n+\t{\n+\t\tthis->recolour = nullptr;\n+\t\tthis->highlight = false;\n+\t}\n+\n+\tDrawData(const DrawData &dd)\n+\t{\n+\t\tthis->level = dd.level;\n+\t\tthis->z_height = dd.z_height;\n+\t\tthis->order = dd.order;\n+\t\tthis->sprite = dd.sprite;\n+\t\tthis->base = dd.base;\n+\t\tthis->recolour = dd.recolour;\n+\t\tthis->highlight = dd.highlight;\n+\t}\n+\n+\tDrawData &operator=(const DrawData &dd)\n+\t{\n+\t\tif (this != &dd) {\n+\t\t\tthis->level = dd.level;\n+\t\t\tthis->z_height = dd.z_height;\n+\t\t\tthis->order = dd.order;\n+\t\t\tthis->sprite = dd.sprite;\n+\t\t\tthis->base = dd.base;\n+\t\t\tthis->recolour = dd.recolour;\n+\t\t\tthis->highlight = dd.highlight;\n+\t\t}\n+\t\treturn *this;\n+\t}","path":"src/viewport.cpp","position":36,"original_position":36,"commit_id":"7c963a57412018eff92166bd04f338df449de987","original_commit_id":"7c963a57412018eff92166bd04f338df449de987","user":{"login":"LordAro","id":4007992,"avatar_url":"https://avatars.githubusercontent.com/u/4007992?v=3","gravatar_id":"","url":"https://api.github.com/users/LordAro","html_url":"https://github.com/LordAro","followers_url":"https://api.github.com/users/LordAro/followers","following_url":"https://api.github.com/users/LordAro/following{/other_user}","gists_url":"https://api.github.com/users/LordAro/gists{/gist_id}","starred_url":"https://api.github.com/users/LordAro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LordAro/subscriptions","organizations_url":"https://api.github.com/users/LordAro/orgs","repos_url":"https://api.github.com/users/LordAro/repos","events_url":"https://api.github.com/users/LordAro/events{/privacy}","received_events_url":"https://api.github.com/users/LordAro/received_events","type":"User","site_admin":false},"body":"can probably use `DrawData(...) = default;` for all 3 of these?","created_at":"2015-06-01T20:44:25Z","updated_at":"2015-06-01T20:44:25Z","html_url":"https://github.com/FreeRCT/FreeRCT/pull/93#discussion_r31468142","pull_request_url":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/93","_links":{"self":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/comments/31468142"},"html":{"href":"https://github.com/FreeRCT/FreeRCT/pull/93#discussion_r31468142"},"pull_request":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/93","id":36668478,"html_url":"https://github.com/FreeRCT/FreeRCT/pull/93","diff_url":"https://github.com/FreeRCT/FreeRCT/pull/93.diff","patch_url":"https://github.com/FreeRCT/FreeRCT/pull/93.patch","issue_url":"https://api.github.com/repos/FreeRCT/FreeRCT/issues/93","number":93,"state":"open","locked":false,"title":"DrawData constructor and simplification","user":{"login":"Alberth289346","id":3254232,"avatar_url":"https://avatars.githubusercontent.com/u/3254232?v=3","gravatar_id":"","url":"https://api.github.com/users/Alberth289346","html_url":"https://github.com/Alberth289346","followers_url":"https://api.github.com/users/Alberth289346/followers","following_url":"https://api.github.com/users/Alberth289346/following{/other_user}","gists_url":"https://api.github.com/users/Alberth289346/gists{/gist_id}","starred_url":"https://api.github.com/users/Alberth289346/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alberth289346/subscriptions","organizations_url":"https://api.github.com/users/Alberth289346/orgs","repos_url":"https://api.github.com/users/Alberth289346/repos","events_url":"https://api.github.com/users/Alberth289346/events{/privacy}","received_events_url":"https://api.github.com/users/Alberth289346/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-01T20:41:17Z","updated_at":"2015-06-01T20:44:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de53c469d4e2ea2c2bb64d58ed2eeb77a0ef69ca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/93/commits","review_comments_url":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/93/comments","review_comment_url":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FreeRCT/FreeRCT/issues/93/comments","statuses_url":"https://api.github.com/repos/FreeRCT/FreeRCT/statuses/7c963a57412018eff92166bd04f338df449de987","head":{"label":"Alberth289346:dd_constructor","ref":"dd_constructor","sha":"7c963a57412018eff92166bd04f338df449de987","user":{"login":"Alberth289346","id":3254232,"avatar_url":"https://avatars.githubusercontent.com/u/3254232?v=3","gravatar_id":"","url":"https://api.github.com/users/Alberth289346","html_url":"https://github.com/Alberth289346","followers_url":"https://api.github.com/users/Alberth289346/followers","following_url":"https://api.github.com/users/Alberth289346/following{/other_user}","gists_url":"https://api.github.com/users/Alberth289346/gists{/gist_id}","starred_url":"https://api.github.com/users/Alberth289346/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alberth289346/subscriptions","organizations_url":"https://api.github.com/users/Alberth289346/orgs","repos_url":"https://api.github.com/users/Alberth289346/repos","events_url":"https://api.github.com/users/Alberth289346/events{/privacy}","received_events_url":"https://api.github.com/users/Alberth289346/received_events","type":"User","site_admin":false},"repo":{"id":32470773,"name":"FreeRCT","full_name":"Alberth289346/FreeRCT","owner":{"login":"Alberth289346","id":3254232,"avatar_url":"https://avatars.githubusercontent.com/u/3254232?v=3","gravatar_id":"","url":"https://api.github.com/users/Alberth289346","html_url":"https://github.com/Alberth289346","followers_url":"https://api.github.com/users/Alberth289346/followers","following_url":"https://api.github.com/users/Alberth289346/following{/other_user}","gists_url":"https://api.github.com/users/Alberth289346/gists{/gist_id}","starred_url":"https://api.github.com/users/Alberth289346/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alberth289346/subscriptions","organizations_url":"https://api.github.com/users/Alberth289346/orgs","repos_url":"https://api.github.com/users/Alberth289346/repos","events_url":"https://api.github.com/users/Alberth289346/events{/privacy}","received_events_url":"https://api.github.com/users/Alberth289346/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Alberth289346/FreeRCT","description":"FreeRCT aims to be a free and open source game which captures the look, feel and gameplay of the popular games RollerCoaster Tycoon 1 and 2.","fork":true,"url":"https://api.github.com/repos/Alberth289346/FreeRCT","forks_url":"https://api.github.com/repos/Alberth289346/FreeRCT/forks","keys_url":"https://api.github.com/repos/Alberth289346/FreeRCT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alberth289346/FreeRCT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alberth289346/FreeRCT/teams","hooks_url":"https://api.github.com/repos/Alberth289346/FreeRCT/hooks","issue_events_url":"https://api.github.com/repos/Alberth289346/FreeRCT/issues/events{/number}","events_url":"https://api.github.com/repos/Alberth289346/FreeRCT/events","assignees_url":"https://api.github.com/repos/Alberth289346/FreeRCT/assignees{/user}","branches_url":"https://api.github.com/repos/Alberth289346/FreeRCT/branches{/branch}","tags_url":"https://api.github.com/repos/Alberth289346/FreeRCT/tags","blobs_url":"https://api.github.com/repos/Alberth289346/FreeRCT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alberth289346/FreeRCT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alberth289346/FreeRCT/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alberth289346/FreeRCT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alberth289346/FreeRCT/statuses/{sha}","languages_url":"https://api.github.com/repos/Alberth289346/FreeRCT/languages","stargazers_url":"https://api.github.com/repos/Alberth289346/FreeRCT/stargazers","contributors_url":"https://api.github.com/repos/Alberth289346/FreeRCT/contributors","subscribers_url":"https://api.github.com/repos/Alberth289346/FreeRCT/subscribers","subscription_url":"https://api.github.com/repos/Alberth289346/FreeRCT/subscription","commits_url":"https://api.github.com/repos/Alberth289346/FreeRCT/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alberth289346/FreeRCT/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alberth289346/FreeRCT/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alberth289346/FreeRCT/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alberth289346/FreeRCT/contents/{+path}","compare_url":"https://api.github.com/repos/Alberth289346/FreeRCT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alberth289346/FreeRCT/merges","archive_url":"https://api.github.com/repos/Alberth289346/FreeRCT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alberth289346/FreeRCT/downloads","issues_url":"https://api.github.com/repos/Alberth289346/FreeRCT/issues{/number}","pulls_url":"https://api.github.com/repos/Alberth289346/FreeRCT/pulls{/number}","milestones_url":"https://api.github.com/repos/Alberth289346/FreeRCT/milestones{/number}","notifications_url":"https://api.github.com/repos/Alberth289346/FreeRCT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alberth289346/FreeRCT/labels{/name}","releases_url":"https://api.github.com/repos/Alberth289346/FreeRCT/releases{/id}","created_at":"2015-03-18T16:31:56Z","updated_at":"2015-05-05T05:51:02Z","pushed_at":"2015-06-01T20:38:49Z","git_url":"git://github.com/Alberth289346/FreeRCT.git","ssh_url":"git@github.com:Alberth289346/FreeRCT.git","clone_url":"https://github.com/Alberth289346/FreeRCT.git","svn_url":"https://github.com/Alberth289346/FreeRCT","homepage":"http://freerct.org","size":107356,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"FreeRCT:master","ref":"master","sha":"3eb89d8fa3106c32f3d65d3b959e8e707b80b497","user":{"login":"FreeRCT","id":6085556,"avatar_url":"https://avatars.githubusercontent.com/u/6085556?v=3","gravatar_id":"","url":"https://api.github.com/users/FreeRCT","html_url":"https://github.com/FreeRCT","followers_url":"https://api.github.com/users/FreeRCT/followers","following_url":"https://api.github.com/users/FreeRCT/following{/other_user}","gists_url":"https://api.github.com/users/FreeRCT/gists{/gist_id}","starred_url":"https://api.github.com/users/FreeRCT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreeRCT/subscriptions","organizations_url":"https://api.github.com/users/FreeRCT/orgs","repos_url":"https://api.github.com/users/FreeRCT/repos","events_url":"https://api.github.com/users/FreeRCT/events{/privacy}","received_events_url":"https://api.github.com/users/FreeRCT/received_events","type":"Organization","site_admin":false},"repo":{"id":32340929,"name":"FreeRCT","full_name":"FreeRCT/FreeRCT","owner":{"login":"FreeRCT","id":6085556,"avatar_url":"https://avatars.githubusercontent.com/u/6085556?v=3","gravatar_id":"","url":"https://api.github.com/users/FreeRCT","html_url":"https://github.com/FreeRCT","followers_url":"https://api.github.com/users/FreeRCT/followers","following_url":"https://api.github.com/users/FreeRCT/following{/other_user}","gists_url":"https://api.github.com/users/FreeRCT/gists{/gist_id}","starred_url":"https://api.github.com/users/FreeRCT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreeRCT/subscriptions","organizations_url":"https://api.github.com/users/FreeRCT/orgs","repos_url":"https://api.github.com/users/FreeRCT/repos","events_url":"https://api.github.com/users/FreeRCT/events{/privacy}","received_events_url":"https://api.github.com/users/FreeRCT/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FreeRCT/FreeRCT","description":"FreeRCT aims to be a free and open source game which captures the look, feel and gameplay of the popular games RollerCoaster Tycoon 1 and 2.","fork":false,"url":"https://api.github.com/repos/FreeRCT/FreeRCT","forks_url":"https://api.github.com/repos/FreeRCT/FreeRCT/forks","keys_url":"https://api.github.com/repos/FreeRCT/FreeRCT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FreeRCT/FreeRCT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FreeRCT/FreeRCT/teams","hooks_url":"https://api.github.com/repos/FreeRCT/FreeRCT/hooks","issue_events_url":"https://api.github.com/repos/FreeRCT/FreeRCT/issues/events{/number}","events_url":"https://api.github.com/repos/FreeRCT/FreeRCT/events","assignees_url":"https://api.github.com/repos/FreeRCT/FreeRCT/assignees{/user}","branches_url":"https://api.github.com/repos/FreeRCT/FreeRCT/branches{/branch}","tags_url":"https://api.github.com/repos/FreeRCT/FreeRCT/tags","blobs_url":"https://api.github.com/repos/FreeRCT/FreeRCT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FreeRCT/FreeRCT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FreeRCT/FreeRCT/git/refs{/sha}","trees_url":"https://api.github.com/repos/FreeRCT/FreeRCT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FreeRCT/FreeRCT/statuses/{sha}","languages_url":"https://api.github.com/repos/FreeRCT/FreeRCT/languages","stargazers_url":"https://api.github.com/repos/FreeRCT/FreeRCT/stargazers","contributors_url":"https://api.github.com/repos/FreeRCT/FreeRCT/contributors","subscribers_url":"https://api.github.com/repos/FreeRCT/FreeRCT/subscribers","subscription_url":"https://api.github.com/repos/FreeRCT/FreeRCT/subscription","commits_url":"https://api.github.com/repos/FreeRCT/FreeRCT/commits{/sha}","git_commits_url":"https://api.github.com/repos/FreeRCT/FreeRCT/git/commits{/sha}","comments_url":"https://api.github.com/repos/FreeRCT/FreeRCT/comments{/number}","issue_comment_url":"https://api.github.com/repos/FreeRCT/FreeRCT/issues/comments{/number}","contents_url":"https://api.github.com/repos/FreeRCT/FreeRCT/contents/{+path}","compare_url":"https://api.github.com/repos/FreeRCT/FreeRCT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FreeRCT/FreeRCT/merges","archive_url":"https://api.github.com/repos/FreeRCT/FreeRCT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FreeRCT/FreeRCT/downloads","issues_url":"https://api.github.com/repos/FreeRCT/FreeRCT/issues{/number}","pulls_url":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls{/number}","milestones_url":"https://api.github.com/repos/FreeRCT/FreeRCT/milestones{/number}","notifications_url":"https://api.github.com/repos/FreeRCT/FreeRCT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FreeRCT/FreeRCT/labels{/name}","releases_url":"https://api.github.com/repos/FreeRCT/FreeRCT/releases{/id}","created_at":"2015-03-16T17:19:15Z","updated_at":"2015-06-01T20:07:52Z","pushed_at":"2015-06-01T20:41:18Z","git_url":"git://github.com/FreeRCT/FreeRCT.git","ssh_url":"git@github.com:FreeRCT/FreeRCT.git","clone_url":"https://github.com/FreeRCT/FreeRCT.git","svn_url":"https://github.com/FreeRCT/FreeRCT","homepage":"http://freerct.org","size":110777,"stargazers_count":66,"watchers_count":66,"language":"C++","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"open_issues_count":15,"forks":10,"open_issues":15,"watchers":66,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/93"},"html":{"href":"https://github.com/FreeRCT/FreeRCT/pull/93"},"issue":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/issues/93"},"comments":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/statuses/7c963a57412018eff92166bd04f338df449de987"}}}}