eliminat codi mort

This commit is contained in:
2025-08-16 09:33:40 +02:00
parent 960ee367df
commit 5c708fc60a
9 changed files with 16 additions and 38 deletions

View File

@@ -424,7 +424,6 @@ void Game::updateGameStateCompleted() {
// Comprueba el estado del juego
void Game::checkState() {
// if (state_ != State::COMPLETED && Stage::number == 10) {
if (state_ != State::COMPLETED && stage_manager_->isGameCompleted()) {
setState(State::COMPLETED);
background_->setState(Background::State::COMPLETED);
@@ -1478,7 +1477,6 @@ void Game::initDemo(Player::Id player_id) {
constexpr auto NUM_DEMOS = 3;
const auto DEMO = rand() % NUM_DEMOS;
constexpr std::array<int, NUM_DEMOS> STAGES = {0, 3, 5};
// Stage::number = STAGES[DEMO];
stage_manager_->jumpToStage(STAGES.at(DEMO));
}
@@ -1735,7 +1733,6 @@ void Game::updateGameStateShowingGetReadyMessage() {
void Game::updateGameStatePlaying() {
#ifdef _DEBUG
if (auto_pop_balloons_) {
// Stage::addPower(5);
stage_manager_->addPower(5);
}
#endif
@@ -1884,7 +1881,6 @@ void Game::handleDebugEvents(const SDL_Event &event) {
case SDLK_1: // Crea una powerball
{
balloon_manager_->createPowerBall();
// throwCoffee(players_.at(0)->getPosX() + (players_.at(0)->getWidth() / 2), players_.at(0)->getPosY() + (players_.at(0)->getHeight() / 2));
break;
}
case SDLK_2: // Activa o desactiva la aparición de globos