Ya permite continuar

This commit is contained in:
2022-09-25 23:16:20 +02:00
parent ed67e429d8
commit 25616e1e6c
7 changed files with 37 additions and 10 deletions

View File

@@ -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;