fix: la IA havia trencat el indicador de fases restants

This commit is contained in:
2025-08-14 11:36:29 +02:00
parent 4cc5102d70
commit a13e024934
2 changed files with 3 additions and 3 deletions

View File

@@ -329,10 +329,10 @@ void Game::updateStage() {
size_t total_stages = stage_manager_->getTotalStages();
// Escribir texto por pantalla
if (current_stage_index < total_stages - 1) { // No es la última fase
if (current_stage_index < total_stages) { // No es la última fase
std::vector<Path> paths = {paths_.at(2), paths_.at(3)};
if (current_stage_index == total_stages - 2) { // Penúltima fase (será la última)
if (current_stage_index == total_stages - 1) { // Penúltima fase (será la última)
createMessage(paths, Resource::get()->getTexture("game_text_last_stage"));
} else {
auto text = Resource::get()->getText("04b_25_2x");