Ya permite continuar
This commit is contained in:
@@ -346,7 +346,6 @@ void Game::init()
|
||||
mTimeStopped = false;
|
||||
mTimeStoppedCounter = 0;
|
||||
mCounter = 0;
|
||||
mBalloonsPopped = 0;
|
||||
mLastEnemyDeploy = 0;
|
||||
mEnemyDeployCounter = 0;
|
||||
mEnemySpeed = mDefaultEnemySpeed;
|
||||
@@ -371,7 +370,7 @@ void Game::init()
|
||||
|
||||
if (mDemo.enabled)
|
||||
{
|
||||
int num = rand() % 2;
|
||||
const int num = rand() % 2;
|
||||
if (num == 0)
|
||||
{
|
||||
mBalloonsPopped = 1000;
|
||||
@@ -390,6 +389,13 @@ void Game::init()
|
||||
initEnemyPools();
|
||||
initGameStages();
|
||||
|
||||
// Mas variables
|
||||
mBalloonsPopped = 0;
|
||||
for (int i = 0; i < mCurrentStage; ++i)
|
||||
{
|
||||
mBalloonsPopped += mStage[i].powerToComplete;
|
||||
}
|
||||
|
||||
// Modo debug
|
||||
mDebug.enabled = false;
|
||||
mDebug.enemySet = 0;
|
||||
|
||||
Reference in New Issue
Block a user