git repos / blockattack-game

commit 5276103a

sago007 · 2015-08-22 17:41
5276103abef9076bbaee056b711317d23128be11 patch · browse files
parent 1a156b60ed5a5665c18f06dc9e0a5ef1a5c08de9

Removed unused variable

Changed files

M source/code/BlockGame.cpp before
M source/code/main.cpp before
M source/code/mainVars.hpp before
diff --git a/source/code/BlockGame.cpp b/source/code/BlockGame.cpp index 04ad395..e24b28c 100644 --- a/source/code/BlockGame.cpp +++ b/source/code/BlockGame.cpp
@@ -319,7 +319,6 @@ void BlockGame::NewGame( unsigned int ticks)
bDisconnected =false;
#endif
nrFellDown = 0;
- lastNrOfPlayers = 1; //At least one player :-)
nrPushedPixel = 0;
nrStops = 0;
cursorx = 2;
diff --git a/source/code/main.cpp b/source/code/main.cpp index cb2c5ae..e3d12ce 100644 --- a/source/code/main.cpp +++ b/source/code/main.cpp
@@ -4383,7 +4383,6 @@ int runGame(int gametype, int level)
#endif
if (twoPlayers)
{
- lastNrOfPlayers = 2;
if ((theGame.isGameOver()) && (theGame2.isGameOver()))
{
if (theGame.GetScore()+theGame.GetHandicap()>theGame2.GetScore()+theGame2.GetHandicap())
diff --git a/source/code/mainVars.hpp b/source/code/mainVars.hpp index 16c430d..1cd2346 100644 --- a/source/code/mainVars.hpp +++ b/source/code/mainVars.hpp
@@ -270,8 +270,6 @@ unsigned long int Frames, Ticks;
char FPS[10];
#endif
-int lastNrOfPlayers; //1 if 1 player and 2 if vs. mode
-
int verboseLevel = 0;
//keySetup