mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user