}
/*
* Override the animated tiles (if any)
*/
final TilesetAnimationMap tsam = animationMap.get(ref);
if (tsam != null) {
for (int i = 0; i < size; i++) {
final Sprite sprite = tsam.getSprite(tileset, i);
if (sprite != null) {
tiles.set(baseindex + i, sprite);
}
}