dtiled icon indicating copy to clipboard operation
dtiled copied to clipboard

Cannot parse GID 0

Open grogancolin opened this issue 9 years ago • 1 comments

DTiled currently falls over when a tile has GID 0.

However, Tiled used GID 0 for an empty tile.

grogancolin avatar Jan 13 '16 14:01 grogancolin

Thanks for reporting. Any context on where this fails? Certain things are expected to fail when a GID is 0 -- for example, getTileset will fail as an empty tile belongs to no tileset. While I could do something like return a Nullable!Tileset, I think it makes more sense for the user to skip over empty tiles on their end. For example, note how the map-building code in dtiled-example explicitly checks for 0 GIDs.

rcorre avatar Jan 14 '16 02:01 rcorre