forked from jaildesigner-jailgames/jaildoctors_dilemma
Resuelto bug al cambiar de paleta con los tiles animados
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user