edoren / STP

SFML TMX Parser -
edoren.github.io/STP
Other
30 stars 13 forks source link

Fixed parsing of TileSet with spacing. #2

Closed ghost closed 10 years ago

ghost commented 10 years ago

When building the Tiles of a TileSet with spacing > 0, the tile index was used instead of the x,y position, offsetting everything on every iteration by 1 extra pixel.

Also, incrementing the index on every loop while calculating the width/height with spacing was offsetting the total size (1 tile smaller in each direction with a spacing of 1).

edoren commented 10 years ago

Thanks, for the fix :D!, already merged.