percevic/fliXNA — Issue #1: FlxTileMap incorrectly assumes the tile image is one row high
Author: euphoria3k
Created: 2012-01-09 10:10:19+00:00
State: open

This is the fix i have applied

int colsInGraphic = tilemap.tileGraphic.Width / (int)width;
tileGraphicSectionToDraw = new Rectangle((index - (int)Math.Floor(index / colsInGraphic) * colsInGraphic) * (int)width, (int)Math.Floor(index / colsInGraphic) * (int)height, (int)width, (int)height);