Resuelto bug al cambiar de paleta con los tiles animados

This commit is contained in:
2022-11-02 00:03:32 +01:00
parent 4901635bb7
commit b4df851bd3
13 changed files with 92 additions and 71 deletions

View File

@@ -816,13 +816,12 @@ void Room::reLoadPalette()
screen->setBorderColor(stringToColor(options->palette, borderColor));
// Cambia la textura
if (options->palette == p_zxspectrum)
texture = (options->palette == p_zxspectrum) ? textureA : textureB;
// Pone la nueva textura a los tiles animados
for (auto tile : aTile)
{
texture = textureA;
}
else
{
texture = textureB;
tile.sprite->setTexture(texture);
}
// Recarga las texturas