1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-15 01:03:38 +02:00

Move check/cmode temporary vars off of mapclass

Yet another set of temporary variables is on a global class when they
shouldn't be. These two are only used in tower background functions and
are never used anywhere else, so they're clearly temporaries.
This commit is contained in:
Misa 2020-11-02 16:27:03 -08:00 committed by Ethan Lee
parent 8d8a5d8f57
commit d9e3e523b7
2 changed files with 6 additions and 9 deletions

View File

@ -89,8 +89,6 @@ mapclass::mapclass()
cameraseek = 0;
minitowermode = false;
scrolldir = 0;
check = 0;
cmode = 0;
tdrawback = false;
bscroll = 0;
roomtexton = false;
@ -590,8 +588,8 @@ void mapclass::updatetowerglow()
if (colsuperstate > 0) colstate--;
colstate++;
if (colstate >= 30) colstate = 0;
check = colstate % 5; //current state of phase
cmode = (colstate - check) / 5; // current colour transition
int check = colstate % 5; //current state of phase
int cmode = (colstate - check) / 5; // current colour transition
switch(cmode)
{
@ -637,8 +635,8 @@ void mapclass::nexttowercolour()
{
colstate+=5;
if (colstate >= 30) colstate = 0;
check = colstate % 5; //current state of phase
cmode = (colstate - check) / 5; // current colour transition
int check = colstate % 5; //current state of phase
int cmode = (colstate - check) / 5; // current colour transition
switch(cmode)
{
@ -669,8 +667,8 @@ void mapclass::settowercolour(int t)
{
colstate=t*5;
if (colstate >= 30) colstate = 0;
check = colstate % 5; //current state of phase
cmode = (colstate - check) / 5; // current colour transition
int check = colstate % 5; //current state of phase
int cmode = (colstate - check) / 5; // current colour transition
switch(cmode)
{

View File

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