AdamAtomic/flixel — Issue #197: FlxTilemap.loadMap() doesn't initialize widthInTiles
Author: GregoryWeir
Created: 2011-10-26 14:52:25+00:00
State: open

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.

I 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.