1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Remove useless variable game.coins

It kept getting set to 0 and getting incremented sometimes, but without
it ever actually getting checked, it's a useless variable.
This commit is contained in:
Misa 2020-04-08 22:20:26 -07:00 committed by Ethan Lee
parent 756c409d1d
commit 317eece28d
3 changed files with 1 additions and 9 deletions

View file

@ -2498,7 +2498,6 @@ void entityclass::updateentities( int i )
//wait for collision //wait for collision
if (entities[i].state == 1) if (entities[i].state == 1)
{ {
game.coins++;
music.playef(4); music.playef(4);
collect[entities[i].para] = 1; collect[entities[i].para] = 1;

View file

@ -4736,8 +4736,6 @@ void Game::customstart()
savepoint = 0; savepoint = 0;
gravitycontrol = savegc; gravitycontrol = savegc;
coins = 0;
//state = 2; deathseq = -1; lifeseq = 10; //Not dead, in game initilisation state //state = 2; deathseq = -1; lifeseq = 10; //Not dead, in game initilisation state
state = 0; state = 0;
deathseq = -1; deathseq = -1;
@ -4762,8 +4760,6 @@ void Game::start()
savepoint = 0; savepoint = 0;
gravitycontrol = savegc; gravitycontrol = savegc;
coins = 0;
//state = 2; deathseq = -1; lifeseq = 10; //Not dead, in game initilisation state //state = 2; deathseq = -1; lifeseq = 10; //Not dead, in game initilisation state
state = 0; state = 0;
deathseq = -1; deathseq = -1;
@ -4859,7 +4855,6 @@ void Game::startspecial( int t )
savepoint = 0; savepoint = 0;
gravitycontrol = savegc; gravitycontrol = savegc;
coins = 0;
state = 0; state = 0;
deathseq = -1; deathseq = -1;
lifeseq = 0; lifeseq = 0;
@ -4931,8 +4926,6 @@ void Game::starttrial( int t )
savepoint = 0; savepoint = 0;
gravitycontrol = savegc; gravitycontrol = savegc;
coins = 0;
//state = 2; deathseq = -1; lifeseq = 10; //Not dead, in game initilisation state //state = 2; deathseq = -1; lifeseq = 10; //Not dead, in game initilisation state
state = 0; state = 0;
deathseq = -1; deathseq = -1;

View file

@ -247,7 +247,7 @@ public:
int deathseq, lifeseq; int deathseq, lifeseq;
int coins, trinkets(), crewmates(); int trinkets(), crewmates();
int savepoint, teleport, teleportxpos; int savepoint, teleport, teleportxpos;
int edteleportent; int edteleportent;
bool completestop; bool completestop;