From 529c7bae237f4b7b1a3519701a1586de8250d1aa Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 15 Jun 2020 15:13:18 -0700 Subject: [PATCH] Make elephant not be flashy if screen effects are disabled The flashy color of the elephant can be hard on people's eyes, especially if they're the type who want screen effects disabled because they might have epilepsy. The elephant takes up a good 3/4ths of the screen, you know. If screen effects are disabled, the elephant will use color 22, which is a neutral gray. I'm only adding this because the VVVVVV speedrun mods (@tzann, @mohoc) invalidate all runs that have the elephant texture removed, even though many people would be looking at a potentially epilepsy-inducing image many times a day grinding 100% speedruns. (Imo, their justification for this is flimsy at best.) --- desktop_version/src/Graphics.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index 8890c788..1ad08405 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -1674,7 +1674,14 @@ void Graphics::drawentities() BlitSurfaceColoured((*spritesvec)[obj.entities[i].drawframe+1],NULL, backBuffer, &drawRect, ct); break; case 11: //The fucking elephant - setcol(obj.entities[i].colour); + if (game.noflashingmode) + { + setcol(22); + } + else + { + setcol(obj.entities[i].colour); + } drawimagecol(3, obj.entities[i].xp, obj.entities[i].yp - yoff); break; case 12: // Regular sprites that don't wrap