{"action":"created","comment":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/comments/70168120","id":70168120,"diff_hunk":"@@ -5381,11 +5381,58 @@ static void vehicle_update_track_motion_up_stop_check(rct_vehicle *vehicle)\n \t}\n }\n \n+void apply_block_section_stop_site(rct_vehicle *vehicle, rct_ride *ride){\n+\tint trackType = vehicle->track_type >> 2;\n+\n+\trct_map_element *trackElement =  map_get_track_element_at_of_type(\n+\t\tvehicle->track_x,\n+\t\tvehicle->track_y,\n+\t\tvehicle->track_z >> 3,\n+\t\ttrackType\n+\t);\n+\n+\tif (trackType == TRACK_ELEM_END_STATION) {\n+\t\tif (trackElement->flags & MAP_ELEMENT_FLAG_BLOCK_BREAK_CLOSED) {\n+\t\t\tRCT2_GLOBAL(0x00F64E18, uint32) |= VEHICLE_UPDATE_MOTION_TRACK_FLAG_10;\n+\t\t}\n+\t} else {\n+\t\t// If the track piece is a block section stop site\n+\t\tif (trackType == TRACK_ELEM_CABLE_LIFT_HILL || trackType == TRACK_ELEM_BLOCK_BRAKES || track_element_is_lift_hill(trackElement)) {\n+\t\t\t// If the site is in a \"train blocking\" state\n+\t\t\tif ((trackElement->flags & MAP_ELEMENT_FLAG_BLOCK_BREAK_CLOSED) && ride_is_block_sectioned(ride)) {\n+\t\t\t\t// Slow it down till completely stop the car\n+\t\t\t\tRCT2_GLOBAL(0x00F64E18, uint32) |= VEHICLE_UPDATE_MOTION_TRACK_FLAG_10;","path":"src/ride/vehicle.c","position":24,"original_position":24,"commit_id":"5e9fea488ad6175828d530c6087bd9e6c22064b4","original_commit_id":"5e9fea488ad6175828d530c6087bd9e6c22064b4","user":{"login":"IntelOrca","id":1482259,"avatar_url":"https://avatars.githubusercontent.com/u/1482259?v=3","gravatar_id":"","url":"https://api.github.com/users/IntelOrca","html_url":"https://github.com/IntelOrca","followers_url":"https://api.github.com/users/IntelOrca/followers","following_url":"https://api.github.com/users/IntelOrca/following{/other_user}","gists_url":"https://api.github.com/users/IntelOrca/gists{/gist_id}","starred_url":"https://api.github.com/users/IntelOrca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IntelOrca/subscriptions","organizations_url":"https://api.github.com/users/IntelOrca/orgs","repos_url":"https://api.github.com/users/IntelOrca/repos","events_url":"https://api.github.com/users/IntelOrca/events{/privacy}","received_events_url":"https://api.github.com/users/IntelOrca/received_events","type":"User","site_admin":false},"body":"There is, but only for drawing. Basically a headless server can run without executing any vanilla code.","created_at":"2016-07-09T14:58:58Z","updated_at":"2016-07-09T14:58:58Z","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/4017#discussion_r70168120","pull_request_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/4017","_links":{"self":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/comments/70168120"},"html":{"href":"https://github.com/OpenRCT2/OpenRCT2/pull/4017#discussion_r70168120"},"pull_request":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/4017"}}},"pull_request":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/4017","id":76823943,"html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/4017","diff_url":"https://github.com/OpenRCT2/OpenRCT2/pull/4017.diff","patch_url":"https://github.com/OpenRCT2/OpenRCT2/pull/4017.patch","issue_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/4017","number":4017,"state":"open","locked":false,"title":"Refactor sub_6DAB4C_chunk_2","user":{"login":"gDanix","id":1117657,"avatar_url":"https://avatars.githubusercontent.com/u/1117657?v=3","gravatar_id":"","url":"https://api.github.com/users/gDanix","html_url":"https://github.com/gDanix","followers_url":"https://api.github.com/users/gDanix/followers","following_url":"https://api.github.com/users/gDanix/following{/other_user}","gists_url":"https://api.github.com/users/gDanix/gists{/gist_id}","starred_url":"https://api.github.com/users/gDanix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gDanix/subscriptions","organizations_url":"https://api.github.com/users/gDanix/orgs","repos_url":"https://api.github.com/users/gDanix/repos","events_url":"https://api.github.com/users/gDanix/events{/privacy}","received_events_url":"https://api.github.com/users/gDanix/received_events","type":"User","site_admin":false},"body":"As discussed on #4012, a refactor of sub_6DAB4C_chunk_2() located inside vehicle.c was needed.\r\n\r\nAlso, sub_6DAB4C_chunk_3() is also refactorized (only renamed).","created_at":"2016-07-08T22:39:06Z","updated_at":"2016-07-09T14:58:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"acf8e53ba975ef63e74918ae65233c9ca2f3ca7e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/4017/commits","review_comments_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/4017/comments","review_comment_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/4017/comments","statuses_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/statuses/5e9fea488ad6175828d530c6087bd9e6c22064b4","head":{"label":"gDanix:refactor-sub_6DAB4C_chunk_2","ref":"refactor-sub_6DAB4C_chunk_2","sha":"5e9fea488ad6175828d530c6087bd9e6c22064b4","user":{"login":"gDanix","id":1117657,"avatar_url":"https://avatars.githubusercontent.com/u/1117657?v=3","gravatar_id":"","url":"https://api.github.com/users/gDanix","html_url":"https://github.com/gDanix","followers_url":"https://api.github.com/users/gDanix/followers","following_url":"https://api.github.com/users/gDanix/following{/other_user}","gists_url":"https://api.github.com/users/gDanix/gists{/gist_id}","starred_url":"https://api.github.com/users/gDanix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gDanix/subscriptions","organizations_url":"https://api.github.com/users/gDanix/orgs","repos_url":"https://api.github.com/users/gDanix/repos","events_url":"https://api.github.com/users/gDanix/events{/privacy}","received_events_url":"https://api.github.com/users/gDanix/received_events","type":"User","site_admin":false},"repo":{"id":61637601,"name":"OpenRCT2","full_name":"gDanix/OpenRCT2","owner":{"login":"gDanix","id":1117657,"avatar_url":"https://avatars.githubusercontent.com/u/1117657?v=3","gravatar_id":"","url":"https://api.github.com/users/gDanix","html_url":"https://github.com/gDanix","followers_url":"https://api.github.com/users/gDanix/followers","following_url":"https://api.github.com/users/gDanix/following{/other_user}","gists_url":"https://api.github.com/users/gDanix/gists{/gist_id}","starred_url":"https://api.github.com/users/gDanix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gDanix/subscriptions","organizations_url":"https://api.github.com/users/gDanix/orgs","repos_url":"https://api.github.com/users/gDanix/repos","events_url":"https://api.github.com/users/gDanix/events{/privacy}","received_events_url":"https://api.github.com/users/gDanix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gDanix/OpenRCT2","description":"An open source re-implementation of RollerCoaster Tycoon 2.","fork":true,"url":"https://api.github.com/repos/gDanix/OpenRCT2","forks_url":"https://api.github.com/repos/gDanix/OpenRCT2/forks","keys_url":"https://api.github.com/repos/gDanix/OpenRCT2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gDanix/OpenRCT2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gDanix/OpenRCT2/teams","hooks_url":"https://api.github.com/repos/gDanix/OpenRCT2/hooks","issue_events_url":"https://api.github.com/repos/gDanix/OpenRCT2/issues/events{/number}","events_url":"https://api.github.com/repos/gDanix/OpenRCT2/events","assignees_url":"https://api.github.com/repos/gDanix/OpenRCT2/assignees{/user}","branches_url":"https://api.github.com/repos/gDanix/OpenRCT2/branches{/branch}","tags_url":"https://api.github.com/repos/gDanix/OpenRCT2/tags","blobs_url":"https://api.github.com/repos/gDanix/OpenRCT2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gDanix/OpenRCT2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gDanix/OpenRCT2/git/refs{/sha}","trees_url":"https://api.github.com/repos/gDanix/OpenRCT2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gDanix/OpenRCT2/statuses/{sha}","languages_url":"https://api.github.com/repos/gDanix/OpenRCT2/languages","stargazers_url":"https://api.github.com/repos/gDanix/OpenRCT2/stargazers","contributors_url":"https://api.github.com/repos/gDanix/OpenRCT2/contributors","subscribers_url":"https://api.github.com/repos/gDanix/OpenRCT2/subscribers","subscription_url":"https://api.github.com/repos/gDanix/OpenRCT2/subscription","commits_url":"https://api.github.com/repos/gDanix/OpenRCT2/commits{/sha}","git_commits_url":"https://api.github.com/repos/gDanix/OpenRCT2/git/commits{/sha}","comments_url":"https://api.github.com/repos/gDanix/OpenRCT2/comments{/number}","issue_comment_url":"https://api.github.com/repos/gDanix/OpenRCT2/issues/comments{/number}","contents_url":"https://api.github.com/repos/gDanix/OpenRCT2/contents/{+path}","compare_url":"https://api.github.com/repos/gDanix/OpenRCT2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gDanix/OpenRCT2/merges","archive_url":"https://api.github.com/repos/gDanix/OpenRCT2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gDanix/OpenRCT2/downloads","issues_url":"https://api.github.com/repos/gDanix/OpenRCT2/issues{/number}","pulls_url":"https://api.github.com/repos/gDanix/OpenRCT2/pulls{/number}","milestones_url":"https://api.github.com/repos/gDanix/OpenRCT2/milestones{/number}","notifications_url":"https://api.github.com/repos/gDanix/OpenRCT2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gDanix/OpenRCT2/labels{/name}","releases_url":"https://api.github.com/repos/gDanix/OpenRCT2/releases{/id}","deployments_url":"https://api.github.com/repos/gDanix/OpenRCT2/deployments","created_at":"2016-06-21T13:51:01Z","updated_at":"2016-06-21T13:51:04Z","pushed_at":"2016-07-08T23:05:41Z","git_url":"git://github.com/gDanix/OpenRCT2.git","ssh_url":"git@github.com:gDanix/OpenRCT2.git","clone_url":"https://github.com/gDanix/OpenRCT2.git","svn_url":"https://github.com/gDanix/OpenRCT2","homepage":"http://openrct2.website","size":37570,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"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":"develop"}},"base":{"label":"OpenRCT2:develop","ref":"develop","sha":"76b2621a51ae489f09773010315b47ff24698fa9","user":{"login":"OpenRCT2","id":8473908,"avatar_url":"https://avatars.githubusercontent.com/u/8473908?v=3","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://avatars.githubusercontent.com/u/8473908?v=3","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":"2016-07-09T03:34:43Z","pushed_at":"2016-07-09T13:28:25Z","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":"http://openrct2.website","size":65814,"stargazers_count":1931,"watchers_count":1931,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":361,"mirror_url":null,"open_issues_count":568,"forks":361,"open_issues":568,"watchers":1931,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/4017"},"html":{"href":"https://github.com/OpenRCT2/OpenRCT2/pull/4017"},"issue":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/4017"},"comments":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/4017/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/4017/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/4017/commits"},"statuses":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/statuses/5e9fea488ad6175828d530c6087bd9e6c22064b4"}}}}
{"actor":{"display_login":"IntelOrca"}}