passant linters a vore si trobe variables sense inicialitzar
This commit is contained in:
@@ -49,7 +49,7 @@ Title::Title()
|
||||
game_logo_->enable();
|
||||
mini_logo_sprite_->setX(param.game.game_area.center_x - mini_logo_sprite_->getWidth() / 2);
|
||||
fade_->setColor(param.fade.color);
|
||||
fade_->setType(FadeType::RANDOM_SQUARE);
|
||||
fade_->setType(Fade::Type::RANDOM_SQUARE);
|
||||
fade_->setPostDuration(param.fade.post_duration);
|
||||
initPlayers();
|
||||
|
||||
@@ -201,7 +201,7 @@ void Title::printColorValue(const Color& color) {
|
||||
<< std::hex << std::setw(2) << std::setfill('0') << (int)color.r
|
||||
<< std::setw(2) << std::setfill('0') << (int)color.g
|
||||
<< std::setw(2) << std::setfill('0') << (int)color.b
|
||||
<< std::endl;
|
||||
<< '\n';
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -538,7 +538,7 @@ void Title::initPlayers() {
|
||||
players_.back()->setPlayingState(Player::State::TITLE_HIDDEN);
|
||||
|
||||
// Registra los jugadores en Options
|
||||
for (auto player : players_) {
|
||||
for (const auto& player : players_) {
|
||||
Options::keyboard.addPlayer(player);
|
||||
Options::gamepad_manager.addPlayer(player);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user