1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01: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 //Special case: animated tiles
if (final_mapcol == 1) if (final_mapcol == 1)
{ {
return 737 + (int(fRandom() * 11) * 40); int offset;
if (game.noflashingmode)
{
offset = 0;
} }
else else
{ {
return contents[x + vmult[y]] - (final_mapcol * 3) + (final_aniframe * 40); offset = int(fRandom() * 11) * 40;
}
return 737 + offset;
}
else
{
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) else if (contents[x + vmult[y]] >= 80)