for (int i = mapsize; i < baseindex; i++) {
tiles.add(null);
}
}
Tileset tileset = tilesetsLoaded.get(ref);
if (tileset == null) {
tileset = new SpriteTileset(store, baseFolder + ref);
tilesetsLoaded.put(ref, tileset);
}
final int size = tileset.getSize();
tiles.ensureCapacity(baseindex + size);
for (int i = 0; i < size; i++) {
tiles.add(tileset.getSprite(i));
}
/*
* Override the animated tiles (if any)
*/