1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-02 02:53:32 +02:00

Disable final color animations if screen effects off

Similar to disabling the elephant flashiness, at least one
photosensitive person has told me the flashy color animation makes their
eyes kind of hurt a little bit. Also it screws up the compression really
badly when they record (especially the green noisy tiles!).

The colors will still cycle, but the individual animations within each
color will be completely static.
This commit is contained in:
Misa 2021-08-07 15:57:29 -07:00 committed by Ethan Lee
parent 1841f1886a
commit b114be88d5

View File

@ -475,11 +475,29 @@ int mapclass::finalat(int x, int y)
//Special case: animated tiles
if (final_mapcol == 1)
{
return 737 + (int(fRandom() * 11) * 40);
int offset;
if (game.noflashingmode)
{
offset = 0;
}
else
{
offset = int(fRandom() * 11) * 40;
}
return 737 + offset;
}
else
{
return contents[x + vmult[y]] - (final_mapcol * 3) + (final_aniframe * 40);
int offset;
if (game.noflashingmode)
{
offset = 0;
}
else
{
offset = final_aniframe * 40;
}
return contents[x + vmult[y]] - (final_mapcol * 3) + offset;
}
}
else if (contents[x + vmult[y]] >= 80)