{"action":"created","comment":{"url":"https://api.github.com/repos/ddnet/ddnet/pulls/comments/64142001","id":64142001,"diff_hunk":"@@ -37,6 +37,27 @@ bool IsValidFrontTile(int Index)\n \t);\n }\n \n+bool IsValidSwitchTile(int Index)\n+{\n+\treturn (\n+\t\tIndex == TILE_JUMP\n+\t\t|| Index == TILE_FREEZE\n+\t\t|| Index == TILE_DFREEZE\n+\t\t|| Index == TILE_DUNFREEZE\n+\t\t|| Index == TILE_HIT_START\n+\t\t|| Index == TILE_HIT_END\n+\t\t|| Index == TILE_SWITCHTIMEDOPEN\n+\t\t|| Index == TILE_SWITCHTIMEDCLOSE\n+\t\t|| Index == TILE_SWITCHOPEN\n+\t\t|| Index == TILE_SWITCHCLOSE\n+\t\t|| Index == TILE_PENALTY\n+\t\t|| Index == TILE_BONUS\n+\t\t//Switch layer do not contain spawns and flags (which acceptedeable in IsValidEntity() )\n+\t\t|| (Index >= ENTITY_ARMOR_1 + ENTITY_OFFSET && IsValidEntity(Index))","path":"src/game/mapitems.cpp","position":20,"original_position":20,"commit_id":"1cdd167ea12f99b605ddca6434b4f9c66bc77732","original_commit_id":"a7c41213ce2790651d745b557fe4cf4bb29d0558","user":{"login":"def-","id":2335377,"avatar_url":"https://avatars.githubusercontent.com/u/2335377?v=3","gravatar_id":"","url":"https://api.github.com/users/def-","html_url":"https://github.com/def-","followers_url":"https://api.github.com/users/def-/followers","following_url":"https://api.github.com/users/def-/following{/other_user}","gists_url":"https://api.github.com/users/def-/gists{/gist_id}","starred_url":"https://api.github.com/users/def-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/def-/subscriptions","organizations_url":"https://api.github.com/users/def-/orgs","repos_url":"https://api.github.com/users/def-/repos","events_url":"https://api.github.com/users/def-/events{/privacy}","received_events_url":"https://api.github.com/users/def-/received_events","type":"User","site_admin":false},"body":"Just `IsValidEntity(Index)` works in this line as `IsValidEntity` already checks whether it's in the right range.","created_at":"2016-05-21T23:47:38Z","updated_at":"2016-05-21T23:47:38Z","html_url":"https://github.com/ddnet/ddnet/pull/480#discussion_r64142001","pull_request_url":"https://api.github.com/repos/ddnet/ddnet/pulls/480","_links":{"self":{"href":"https://api.github.com/repos/ddnet/ddnet/pulls/comments/64142001"},"html":{"href":"https://github.com/ddnet/ddnet/pull/480#discussion_r64142001"},"pull_request":{"href":"https://api.github.com/repos/ddnet/ddnet/pulls/480"}}},"pull_request":{"url":"https://api.github.com/repos/ddnet/ddnet/pulls/480","id":70070187,"html_url":"https://github.com/ddnet/ddnet/pull/480","diff_url":"https://github.com/ddnet/ddnet/pull/480.diff","patch_url":"https://github.com/ddnet/ddnet/pull/480.patch","issue_url":"https://api.github.com/repos/ddnet/ddnet/issues/480","number":480,"state":"open","locked":false,"title":"Some improves for layers editing in editor","user":{"login":"BannZay","id":17499770,"avatar_url":"https://avatars.githubusercontent.com/u/17499770?v=3","gravatar_id":"","url":"https://api.github.com/users/BannZay","html_url":"https://github.com/BannZay","followers_url":"https://api.github.com/users/BannZay/followers","following_url":"https://api.github.com/users/BannZay/following{/other_user}","gists_url":"https://api.github.com/users/BannZay/gists{/gist_id}","starred_url":"https://api.github.com/users/BannZay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BannZay/subscriptions","organizations_url":"https://api.github.com/users/BannZay/orgs","repos_url":"https://api.github.com/users/BannZay/repos","events_url":"https://api.github.com/users/BannZay/events{/privacy}","received_events_url":"https://api.github.com/users/BannZay/received_events","type":"User","site_admin":false},"body":"Some fixes for editor while editing  switch layer\r\n-removed unused entities\r\n-fixed (added) rotation for switch indicators (number/delay) ( tiles has only rotation possibility before)\r\n- added tiles rotation possibility for switch layer (Its useless but not less useless as for almost all game/front tiles)","created_at":"2016-05-13T23:03:24Z","updated_at":"2016-05-21T23:47:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"879f55c952f3f75f1d77b43df3b6f6ab1478e9d4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ddnet/ddnet/pulls/480/commits","review_comments_url":"https://api.github.com/repos/ddnet/ddnet/pulls/480/comments","review_comment_url":"https://api.github.com/repos/ddnet/ddnet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ddnet/ddnet/issues/480/comments","statuses_url":"https://api.github.com/repos/ddnet/ddnet/statuses/1cdd167ea12f99b605ddca6434b4f9c66bc77732","head":{"label":"BannZay:switchLayerImprvs","ref":"switchLayerImprvs","sha":"1cdd167ea12f99b605ddca6434b4f9c66bc77732","user":{"login":"BannZay","id":17499770,"avatar_url":"https://avatars.githubusercontent.com/u/17499770?v=3","gravatar_id":"","url":"https://api.github.com/users/BannZay","html_url":"https://github.com/BannZay","followers_url":"https://api.github.com/users/BannZay/followers","following_url":"https://api.github.com/users/BannZay/following{/other_user}","gists_url":"https://api.github.com/users/BannZay/gists{/gist_id}","starred_url":"https://api.github.com/users/BannZay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BannZay/subscriptions","organizations_url":"https://api.github.com/users/BannZay/orgs","repos_url":"https://api.github.com/users/BannZay/repos","events_url":"https://api.github.com/users/BannZay/events{/privacy}","received_events_url":"https://api.github.com/users/BannZay/received_events","type":"User","site_admin":false},"repo":{"id":58684480,"name":"ddnet","full_name":"BannZay/ddnet","owner":{"login":"BannZay","id":17499770,"avatar_url":"https://avatars.githubusercontent.com/u/17499770?v=3","gravatar_id":"","url":"https://api.github.com/users/BannZay","html_url":"https://github.com/BannZay","followers_url":"https://api.github.com/users/BannZay/followers","following_url":"https://api.github.com/users/BannZay/following{/other_user}","gists_url":"https://api.github.com/users/BannZay/gists{/gist_id}","starred_url":"https://api.github.com/users/BannZay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BannZay/subscriptions","organizations_url":"https://api.github.com/users/BannZay/orgs","repos_url":"https://api.github.com/users/BannZay/repos","events_url":"https://api.github.com/users/BannZay/events{/privacy}","received_events_url":"https://api.github.com/users/BannZay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BannZay/ddnet","description":"DDraceNetwork, a mod of Teeworlds","fork":true,"url":"https://api.github.com/repos/BannZay/ddnet","forks_url":"https://api.github.com/repos/BannZay/ddnet/forks","keys_url":"https://api.github.com/repos/BannZay/ddnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BannZay/ddnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BannZay/ddnet/teams","hooks_url":"https://api.github.com/repos/BannZay/ddnet/hooks","issue_events_url":"https://api.github.com/repos/BannZay/ddnet/issues/events{/number}","events_url":"https://api.github.com/repos/BannZay/ddnet/events","assignees_url":"https://api.github.com/repos/BannZay/ddnet/assignees{/user}","branches_url":"https://api.github.com/repos/BannZay/ddnet/branches{/branch}","tags_url":"https://api.github.com/repos/BannZay/ddnet/tags","blobs_url":"https://api.github.com/repos/BannZay/ddnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BannZay/ddnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BannZay/ddnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/BannZay/ddnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BannZay/ddnet/statuses/{sha}","languages_url":"https://api.github.com/repos/BannZay/ddnet/languages","stargazers_url":"https://api.github.com/repos/BannZay/ddnet/stargazers","contributors_url":"https://api.github.com/repos/BannZay/ddnet/contributors","subscribers_url":"https://api.github.com/repos/BannZay/ddnet/subscribers","subscription_url":"https://api.github.com/repos/BannZay/ddnet/subscription","commits_url":"https://api.github.com/repos/BannZay/ddnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/BannZay/ddnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/BannZay/ddnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/BannZay/ddnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/BannZay/ddnet/contents/{+path}","compare_url":"https://api.github.com/repos/BannZay/ddnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BannZay/ddnet/merges","archive_url":"https://api.github.com/repos/BannZay/ddnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BannZay/ddnet/downloads","issues_url":"https://api.github.com/repos/BannZay/ddnet/issues{/number}","pulls_url":"https://api.github.com/repos/BannZay/ddnet/pulls{/number}","milestones_url":"https://api.github.com/repos/BannZay/ddnet/milestones{/number}","notifications_url":"https://api.github.com/repos/BannZay/ddnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BannZay/ddnet/labels{/name}","releases_url":"https://api.github.com/repos/BannZay/ddnet/releases{/id}","deployments_url":"https://api.github.com/repos/BannZay/ddnet/deployments","created_at":"2016-05-12T23:39:38Z","updated_at":"2016-05-12T23:39:42Z","pushed_at":"2016-05-21T21:10:00Z","git_url":"git://github.com/BannZay/ddnet.git","ssh_url":"git@github.com:BannZay/ddnet.git","clone_url":"https://github.com/BannZay/ddnet.git","svn_url":"https://github.com/BannZay/ddnet","homepage":null,"size":191349,"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":"master"}},"base":{"label":"ddnet:master","ref":"master","sha":"668b0b887d1f2412f3e06f7b69a49523973d59d4","user":{"login":"ddnet","id":13823972,"avatar_url":"https://avatars.githubusercontent.com/u/13823972?v=3","gravatar_id":"","url":"https://api.github.com/users/ddnet","html_url":"https://github.com/ddnet","followers_url":"https://api.github.com/users/ddnet/followers","following_url":"https://api.github.com/users/ddnet/following{/other_user}","gists_url":"https://api.github.com/users/ddnet/gists{/gist_id}","starred_url":"https://api.github.com/users/ddnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddnet/subscriptions","organizations_url":"https://api.github.com/users/ddnet/orgs","repos_url":"https://api.github.com/users/ddnet/repos","events_url":"https://api.github.com/users/ddnet/events{/privacy}","received_events_url":"https://api.github.com/users/ddnet/received_events","type":"Organization","site_admin":false},"repo":{"id":22821674,"name":"ddnet","full_name":"ddnet/ddnet","owner":{"login":"ddnet","id":13823972,"avatar_url":"https://avatars.githubusercontent.com/u/13823972?v=3","gravatar_id":"","url":"https://api.github.com/users/ddnet","html_url":"https://github.com/ddnet","followers_url":"https://api.github.com/users/ddnet/followers","following_url":"https://api.github.com/users/ddnet/following{/other_user}","gists_url":"https://api.github.com/users/ddnet/gists{/gist_id}","starred_url":"https://api.github.com/users/ddnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddnet/subscriptions","organizations_url":"https://api.github.com/users/ddnet/orgs","repos_url":"https://api.github.com/users/ddnet/repos","events_url":"https://api.github.com/users/ddnet/events{/privacy}","received_events_url":"https://api.github.com/users/ddnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ddnet/ddnet","description":"DDraceNetwork, a mod of Teeworlds","fork":false,"url":"https://api.github.com/repos/ddnet/ddnet","forks_url":"https://api.github.com/repos/ddnet/ddnet/forks","keys_url":"https://api.github.com/repos/ddnet/ddnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ddnet/ddnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ddnet/ddnet/teams","hooks_url":"https://api.github.com/repos/ddnet/ddnet/hooks","issue_events_url":"https://api.github.com/repos/ddnet/ddnet/issues/events{/number}","events_url":"https://api.github.com/repos/ddnet/ddnet/events","assignees_url":"https://api.github.com/repos/ddnet/ddnet/assignees{/user}","branches_url":"https://api.github.com/repos/ddnet/ddnet/branches{/branch}","tags_url":"https://api.github.com/repos/ddnet/ddnet/tags","blobs_url":"https://api.github.com/repos/ddnet/ddnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ddnet/ddnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ddnet/ddnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/ddnet/ddnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ddnet/ddnet/statuses/{sha}","languages_url":"https://api.github.com/repos/ddnet/ddnet/languages","stargazers_url":"https://api.github.com/repos/ddnet/ddnet/stargazers","contributors_url":"https://api.github.com/repos/ddnet/ddnet/contributors","subscribers_url":"https://api.github.com/repos/ddnet/ddnet/subscribers","subscription_url":"https://api.github.com/repos/ddnet/ddnet/subscription","commits_url":"https://api.github.com/repos/ddnet/ddnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/ddnet/ddnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/ddnet/ddnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/ddnet/ddnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/ddnet/ddnet/contents/{+path}","compare_url":"https://api.github.com/repos/ddnet/ddnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ddnet/ddnet/merges","archive_url":"https://api.github.com/repos/ddnet/ddnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ddnet/ddnet/downloads","issues_url":"https://api.github.com/repos/ddnet/ddnet/issues{/number}","pulls_url":"https://api.github.com/repos/ddnet/ddnet/pulls{/number}","milestones_url":"https://api.github.com/repos/ddnet/ddnet/milestones{/number}","notifications_url":"https://api.github.com/repos/ddnet/ddnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ddnet/ddnet/labels{/name}","releases_url":"https://api.github.com/repos/ddnet/ddnet/releases{/id}","deployments_url":"https://api.github.com/repos/ddnet/ddnet/deployments","created_at":"2014-08-11T00:03:57Z","updated_at":"2016-05-06T06:45:45Z","pushed_at":"2016-05-21T23:43:41Z","git_url":"git://github.com/ddnet/ddnet.git","ssh_url":"git@github.com:ddnet/ddnet.git","clone_url":"https://github.com/ddnet/ddnet.git","svn_url":"https://github.com/ddnet/ddnet","homepage":null,"size":203667,"stargazers_count":46,"watchers_count":46,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":63,"mirror_url":null,"open_issues_count":46,"forks":63,"open_issues":46,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ddnet/ddnet/pulls/480"},"html":{"href":"https://github.com/ddnet/ddnet/pull/480"},"issue":{"href":"https://api.github.com/repos/ddnet/ddnet/issues/480"},"comments":{"href":"https://api.github.com/repos/ddnet/ddnet/issues/480/comments"},"review_comments":{"href":"https://api.github.com/repos/ddnet/ddnet/pulls/480/comments"},"review_comment":{"href":"https://api.github.com/repos/ddnet/ddnet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ddnet/ddnet/pulls/480/commits"},"statuses":{"href":"https://api.github.com/repos/ddnet/ddnet/statuses/1cdd167ea12f99b605ddca6434b4f9c66bc77732"}}}}
{"actor":{"display_login":"def-"}}