{"comment":{"created_at":"2011-10-26T15:03:03Z","body":"On further experimentation, it seems that _buffers also needs to be reinitialized to a new empty array in order to make loadMap work on a second call.","updated_at":"2011-10-26T15:03:03Z","url":"https://api.github.com/repos/AdamAtomic/flixel/issues/comments/2531365","id":2531365,"user":{"avatar_url":"https://secure.gravatar.com/avatar/d9b25b67d53fa0457506f0b16818f532?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d9b25b67d53fa0457506f0b16818f532","url":"https://api.github.com/users/GregoryWeir","id":168784,"login":"GregoryWeir"}},"action":"created","issue":{"number":197,"created_at":"2011-10-26T14:52:25Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"FlxTilemap.loadMap() doesn't initialize widthInTiles, but expects it to be zero. It only updates widthInTiles based on the provided map if widthInTiles is 0, which means that loading a new map into an already-initialized FlxTilemap does not change the width of the map.\r\n\r\nI suggest that loadMap() set widthInTiles to 0 near where it sets the value of heightInTiles, which will allow the later while loop to properly set the tilemap's new width.","comments":1,"title":"FlxTilemap.loadMap() doesn't initialize widthInTiles","updated_at":"2011-10-26T15:03:03Z","url":"https://api.github.com/repos/AdamAtomic/flixel/issues/197","id":2057463,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/d9b25b67d53fa0457506f0b16818f532?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d9b25b67d53fa0457506f0b16818f532","url":"https://api.github.com/users/GregoryWeir","id":168784,"login":"GregoryWeir"},"html_url":"https://github.com/AdamAtomic/flixel/issues/197","labels":[],"state":"open"},"legacy":{"issue_id":2057463,"comment_id":2531365}}