Skip to content

Commit c331860

Browse files
committed
Only import autotiles and tilegroups if start is 0
1 parent d5ea8cb commit c331860

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/supertux/tile_set_parser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ TileSetParser::parse(uint32_t start, uint32_t end, int32_t offset)
6262
{
6363
/* tilegroups are only interesting for the editor */
6464
/* ignore tilegroups for imported tilesets unless there's no limit and no offset*/
65-
if (end || offset) continue;
65+
if (start || end || offset) continue;
6666
ReaderMapping reader = iter.as_mapping();
6767
Tilegroup tilegroup;
6868
reader.get("name", tilegroup.name);
@@ -77,7 +77,7 @@ TileSetParser::parse(uint32_t start, uint32_t end, int32_t offset)
7777
else if (iter.get_key() == "autotileset")
7878
{
7979
/* ignore autotiles for imported tilesets unless there's no limit and no offset */
80-
if (end || offset) continue;
80+
if (start || end || offset) continue;
8181
ReaderMapping reader = iter.as_mapping();
8282
std::string autotile_filename;
8383
if (!reader.get("source", autotile_filename))

0 commit comments

Comments
 (0)