fix: alguns minibugs tontos
This commit is contained in:
@@ -89,8 +89,11 @@ Game::Game(int player_id, int current_stage, bool demo)
|
|||||||
setTotalPower();
|
setTotalPower();
|
||||||
|
|
||||||
// Crea los primeros globos
|
// Crea los primeros globos
|
||||||
createTwoBigBalloons();
|
if (!demo_.enabled)
|
||||||
evaluateAndSetMenace();
|
{
|
||||||
|
createTwoBigBalloons();
|
||||||
|
evaluateAndSetMenace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Game::~Game()
|
Game::~Game()
|
||||||
@@ -244,7 +247,7 @@ void Game::deployBalloonFormation()
|
|||||||
|
|
||||||
last_balloon_deploy_ = formation;
|
last_balloon_deploy_ = formation;
|
||||||
|
|
||||||
const auto set = balloon_formations_->getStage(0).balloon_pool.set[formation];
|
const auto set = balloon_formations_->getStage(current_stage_).balloon_pool.set[formation];
|
||||||
const auto numEnemies = set.number_of_balloons;
|
const auto numEnemies = set.number_of_balloons;
|
||||||
for (int i = 0; i < numEnemies; ++i)
|
for (int i = 0; i < numEnemies; ++i)
|
||||||
{
|
{
|
||||||
@@ -604,7 +607,8 @@ void Game::startAllBalloons()
|
|||||||
void Game::reverseColorsToAllBalloons()
|
void Game::reverseColorsToAllBalloons()
|
||||||
{
|
{
|
||||||
for (auto &balloon : balloons_)
|
for (auto &balloon : balloons_)
|
||||||
balloon->useReverseColor();
|
if (balloon->isStopped())
|
||||||
|
balloon->useReverseColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cambia el color de todos los globos
|
// Cambia el color de todos los globos
|
||||||
|
|||||||
Reference in New Issue
Block a user