GitHub PullRequestReviewCommentEvent at 2014-06-04 06:54:17
Repository: residualvm
Actor: JoseJX
Payload: {"comment":{"url":"https://api.github.com/repos/residualvm/residualvm/pulls/comments/13372979","id":13372979,"diff_hunk":"@@ -102,7 +102,16 @@ void Lua_V1::IsActorInSector() {\n \tActor *actor = getactor(actorObj);\n \tconst char *name = lua_getstring(nameObj);\n \n-\tSector *sector = g_grim->getCurrSet()->getSectorBySubstring(name, actor->getPos());\n+\tSector *sector;\n+\tif (g_grim->getGameType() == GType_GRIM) {\n+\t\tsector = g_grim->getCurrSet()->getSectorBySubstring(name, actor->getPos());\n+\t} else {\n+\t\tsector = g_grim->getCurrSet()->getSectorByName(name);\n+\t\tif (! (sector && sector->isPointInSector(actor->getPos())) ) {","path":"engines/grim/lua_v1_set.cpp","position":null,"original_position":10,"commit_id":"bde0e1bfcdbe2be4d72df0a22da874fbb8590228","original_commit_id":"53cc46433cbdffc063e91152e75a6f9c5d38165b","user":{"login":"JoseJX","id":459777,"avatar_url":"https://avatars.githubusercontent.com/u/459777?","gravatar_id":"3b2ad4829e278c7abcbf3178208b9567","url":"https://api.github.com/users/JoseJX","html_url":"https://github.com/JoseJX","followers_url":"https://api.github.com/users/JoseJX/followers","following_url":"https://api.github.com/users/JoseJX/following{/other_user}","gists_url":"https://api.github.com/users/JoseJX/gists{/gist_id}","starred_url":"https://api.github.com/users/JoseJX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoseJX/subscriptions","organizations_url":"https://api.github.com/users/JoseJX/orgs","repos_url":"https://api.github.com/users/JoseJX/repos","events_url":"https://api.github.com/users/JoseJX/events{/privacy}","received_events_url":"https://api.github.com/users/JoseJX/received_events","type":"User","site_admin":false},"body":"Thanks, I missed that!","created_at":"2014-06-04T06:54:17Z","updated_at":"2014-06-04T06:54:17Z","html_url":"https://github.com/residualvm/residualvm/pull/883#discussion_r13372979","pull_request_url":"https://api.github.com/repos/residualvm/residualvm/pulls/883","_links":{"self":{"href":"https://api.github.com/repos/residualvm/residualvm/pulls/comments/13372979"},"html":{"href":"https://github.com/residualvm/residualvm/pull/883#discussion_r13372979"},"pull_request":{"href":"https://api.github.com/repos/residualvm/residualvm/pulls/883"}}}}