neteja clang-tidy: enums uint8_t, includes, naming i altres
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
#include "core/audio/audio.hpp" // Para Audio
|
||||
#include "core/input/global_inputs.hpp" // Para check
|
||||
#include "core/input/input.hpp" // Para Input
|
||||
#include "core/input/input_types.hpp" // Para InputAction
|
||||
#include "core/input/pause_manager.hpp" // Para PauseManager
|
||||
#include "core/locale/lang.hpp" // Para getText
|
||||
#include "core/rendering/background.hpp" // Para Background
|
||||
@@ -341,7 +340,7 @@ void Game::updateStage() {
|
||||
|
||||
// Modificar color de fondo en la última fase
|
||||
if (current_stage_index == total_stages - 1) { // Última fase
|
||||
background_->setColor(Color(0xdd, 0x19, 0x1d).DARKEN());
|
||||
background_->setColor(Color(0xdd, 0x19, 0x1d).darken());
|
||||
background_->setAlpha(96);
|
||||
}
|
||||
}
|
||||
@@ -2183,10 +2182,10 @@ void Game::handleDebugEvents(const SDL_Event& event) {
|
||||
break;
|
||||
}
|
||||
case SDLK_8: {
|
||||
const auto it = std::ranges::find_if(players_,
|
||||
const auto IT = std::ranges::find_if(players_,
|
||||
[](const auto& player) { return player->isPlaying(); });
|
||||
if (it != players_.end()) {
|
||||
createItem(ItemType::COFFEE_MACHINE, (*it)->getPosX(), param.game.game_area.rect.y - Item::COFFEE_MACHINE_HEIGHT);
|
||||
if (IT != players_.end()) {
|
||||
createItem(ItemType::COFFEE_MACHINE, (*IT)->getPosX(), param.game.game_area.rect.y - Item::COFFEE_MACHINE_HEIGHT);
|
||||
coffee_machine_enabled_ = true;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user