1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-28 23:48:30 +02:00

Make gravity lines render when screen effects are off

This commit is contained in:
AllyTally 2023-06-15 11:47:01 -03:00 committed by Misa Elizabeth Kai
parent 923efe54d6
commit fd4232e9fd

View File

@ -1700,40 +1700,41 @@ void Graphics::drawgravityline(const int t, const int x, const int y, const int
if (game.noflashingmode) if (game.noflashingmode)
{ {
set_color(200 - 20, 200 - 20, 200 - 20); set_color(200 - 20, 200 - 20, 200 - 20);
draw_line(x, y, x + w, y + h);
return; return;
} }
switch(linestate) switch(linestate)
{ {
case 0: case 0:
set_color(200-20, 200-20, 200-20); set_color(200 - 20, 200 - 20, 200 - 20);
break; break;
case 1: case 1:
set_color(245-30, 245-30, 225-30); set_color(245 - 30, 245 - 30, 225 - 30);
break; break;
case 2: case 2:
set_color(225-30, 245-30, 245-30); set_color(225 - 30, 245 - 30, 245 - 30);
break; break;
case 3: case 3:
set_color(200-20, 200-20, 164-10); set_color(200 - 20, 200 - 20, 164 - 10);
break; break;
case 4: case 4:
set_color(196-20, 255-30, 224-20); set_color(196 - 20, 255 - 30, 224 - 20);
break; break;
case 5: case 5:
set_color(196-20, 235-30, 205-20); set_color(196 - 20, 235 - 30, 205 - 20);
break; break;
case 6: case 6:
set_color(164-10, 164-10, 164-10); set_color(164 - 10, 164 - 10, 164 - 10);
break; break;
case 7: case 7:
set_color(205-20, 245-30, 225-30); set_color(205 - 20, 245 - 30, 225 - 30);
break; break;
case 8: case 8:
set_color(225-30, 255-30, 205-20); set_color(225 - 30, 255 - 30, 205 - 20);
break; break;
case 9: case 9:
set_color(245-30, 245-30, 245-30); set_color(245 - 30, 245 - 30, 245 - 30);
break; break;
} }
} }