Hello Guest

Author Topic: A bug in TileMapImporter  (Read 3389 times)

ncr

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
A bug in TileMapImporter
« on: November 24, 2013, 10:02:09 am »
Hello,

In 2.3.0, there's a bug TileMapImporter at line 187:

int offset = (staggered && ((y % 2) == 0)) ? 0 : 1;

For non-staggered maps, the offset is always 1, resulting in a tile map being rendered off by one tile length, and also crashing when the resolution of the tile map is divisible by the chunk size (eg. 256).

Best,

Jacek

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: A bug in TileMapImporter
« Reply #1 on: November 24, 2013, 12:15:51 pm »
It is indeed a bug - you should be able to fix it with this patch here:
http://2dtoolkit.com/forum/index.php/topic,3116.msg15307.html#msg15307
It will be in the next version.

ncr

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: A bug in TileMapImporter
« Reply #2 on: November 24, 2013, 12:24:04 pm »
Thanks for a quick reply!