{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/215","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/215/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/215/events","html_url":"https://github.com/chrsmith/bwapi/issues/215","id":58519134,"number":215,"title":"Get TilePosition & getPosition no longer return location for Scarabs (post 2.7.1. Beta)","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/auto-migrated","name":"auto-migrated","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-22T21:15:09Z","updated_at":"2015-02-22T21:15:10Z","closed_at":null,"body":"```\n****** What steps will reproduce the problem? ****** \n\n\nstd::set<BWAPI::Unit*> myUnits = Broodwar->self()->getUnits();\n\nfor(std::set<BWAPI::Unit*>::iterator u=myUnits.begin();u!=myUnits.end();u++)\n{\n\n  if((*u)->getType() == BWAPI::UnitTypes::Protoss_Scarab)\n  {\n    BWAPI::UnitType type = (*u)->getType();\n    BWAPI::Position position = (*u)->getPosition();\n    TilePosition tile = (*u)->getTilePosition();\n\n    int x1 = tile.x();\n    int y1 = tile.y();\n\n    int x2 = position.x();\n    int y2 = position.y();\n  }\n}\n\n\n\n\n\n\n******  What is the expected output? What do you see instead? ******\n\nEXPECTED:\nFunctions should return actual position of the unit.\ne.g. \nposition: _x = 320, _y = 320\ntile: _x = 10, _y = 10\n\n\nACTUAL:\nFunctions now return the following:\n\nposition: _x = 100000, _y = 100002\ntile: _x = 1000, _y = 1002\n\n\n\n****** What version of the product are you using? ******\nWindows XP\nBWAPI 2.7.1 Beta\n\nProblem does not exist in BWAPI 2.6.1 Beta (functions return correct position)\n\n\n\nPlease provide any additional information below.\n\nThis causes crashes in programs which use unit locations as parameters for\nother functions. A check could be used to ignore scarabs...but it worked\nfine in BWAPI 2.6.1.\n\n```\n\n-----\nOriginal issue reported on code.google.com by `Kali...@gmail.com` on 24 May 2010 at 2:00"},"comment":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/comments/75459481","html_url":"https://github.com/chrsmith/bwapi/issues/215#issuecomment-75459481","issue_url":"https://api.github.com/repos/chrsmith/bwapi/issues/215","id":75459481,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T21:15:10Z","updated_at":"2015-02-22T21:15:10Z","body":"```\nHaha, yeah visual studio does strange things ever once in a while. Since \nneither of\nus can reproduce the problem I'll mark this as invalid. I don't think any \nPosition or\nTilePosition code changed between 2.6.1 and 2.7.1 so it was probably just some \nweird\nvisual studio thing.\n```\n\n-----\nOriginal comment by `lowerlo...@gmail.com` on 25 May 2010 at 8:02\n* Changed state: **Invalid**"}}