1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2025-01-24 17:54:59 +01:00

Remove unused variable mapclass::towercol

This variable is written to, but is never actually read. Writing to a
variable doesn't really do anything unless you read from it somewhere
else.
This commit is contained in:
Misa 2020-11-02 12:14:56 -08:00 committed by Ethan Lee
parent f847ec7c59
commit 9a9f3f57d5
2 changed files with 0 additions and 5 deletions

View file

@ -91,7 +91,6 @@ mapclass::mapclass()
scrolldir = 0; scrolldir = 0;
check = 0; check = 0;
cmode = 0; cmode = 0;
towercol = 0;
tdrawback = false; tdrawback = false;
bscroll = 0; bscroll = 0;
roomtexton = false; roomtexton = false;
@ -632,7 +631,6 @@ void mapclass::updatetowerglow()
if (colsuperstate > 0) colstatedelay = 0; if (colsuperstate > 0) colstatedelay = 0;
tdrawback = true; tdrawback = true;
towercol = RGB(r*0.04f, g*0.04f, b*0.04f);
} }
else else
{ {
@ -670,7 +668,6 @@ void mapclass::nexttowercolour()
} }
tdrawback = true; tdrawback = true;
towercol = RGB(r*0.04, g*0.04, b*0.04);
} }
void mapclass::settowercolour(int t) void mapclass::settowercolour(int t)
@ -703,7 +700,6 @@ void mapclass::settowercolour(int t)
} }
tdrawback = true; tdrawback = true;
towercol = RGB(r*0.04, g*0.04, b*0.04);
} }
bool mapclass::spikecollide(int x, int y) bool mapclass::spikecollide(int x, int y)

View file

@ -114,7 +114,6 @@ public:
//This is the old colour cycle //This is the old colour cycle
int r, g,b; int r, g,b;
int check, cmode; int check, cmode;
int towercol;
int colstate, colstatedelay; int colstate, colstatedelay;
int colsuperstate; int colsuperstate;
int spikeleveltop, spikelevelbottom; int spikeleveltop, spikelevelbottom;