From b114be88d53d4c0acb3f138af3b2275deb7f352e Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 7 Aug 2021 15:57:29 -0700 Subject: [PATCH] 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. --- desktop_version/src/Map.cpp | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/Map.cpp b/desktop_version/src/Map.cpp index bcac820f..982ffb89 100644 --- a/desktop_version/src/Map.cpp +++ b/desktop_version/src/Map.cpp @@ -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)