{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/161","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/161/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/161/events","html_url":"https://github.com/chrsmith/bwapi/issues/161","id":58774577,"number":161,"title":"Enemy Start Location not Correct","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":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-24T17:43:04Z","updated_at":"2015-02-24T17:43:05Z","closed_at":"2015-02-24T17:43:04Z","body":"```\nEnemy start location is reported incorrectly.  I have only tested this on\nthree two player maps.\n\nIt can be replicated with the following code:\nBroodwar->sendText(\"Number of start locations: %d\", startLocs.size());\nfor each (TilePosition tilePos in startLocs)\n{\n  Broodwar->sendText(\"Start location: (%d, %d)\", tilePos.x(), tilePos.y());\n}\nBroodwar->sendText(\"Our start location: (%d, %d)\",\nBroodwar->self()->getStartLocation().x(),\nBroodwar->self()->getStartLocation().y());\nBroodwar->sendText(\"Enemy start location: (%d, %d)\",\nBroodwar->enemy()->getStartLocation().x(),\nBroodwar->enemy()->getStartLocation().y());\n\nOn two player maps \"Our start location\" equals one of the \"Start\nlocation\"s, but \"Enemy start location\" does not equal the other \"Start\nlocation\".\n\nI expected the enemy start location to be identical to the start location\nthat is not the same as my start location in the array of start locations :)\n\nI am using BWAPI 2.4 beta.\n\nThis is my first report so please be kind if I have not done enough testing\nor it is an issue with my setup/system.\n\nThanks!\n```\n\n-----\nOriginal issue reported on code.google.com by `banknoti...@gmail.com` on 6 Dec 2009 at 1:37"},"comment":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/comments/75806271","html_url":"https://github.com/chrsmith/bwapi/issues/161#issuecomment-75806271","issue_url":"https://api.github.com/repos/chrsmith/bwapi/issues/161","id":75806271,"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-24T17:43:05Z","updated_at":"2015-02-24T17:43:05Z","body":"```\nYou are not supposed to know the enemies start location without scouting it \nunless\nthe full map information flag is set. You are probably printing some \n\"undefined\" data\nfor the enemies location.\n\nObviously it is clear that you can easily figure out the enemies location on a 2\nplayer map, but it could very well be that it wasn't implemented like that yet.\nTry getting a set of the possible start locations (should be 2) and use the one \nthat\nis not yours.\n```\n\n-----\nOriginal comment by `Heckl.Jo...@googlemail.com` on 6 Dec 2009 at 8:05"}}