activa -Wextra -Wpedantic i neteja warnings
This commit is contained in:
@@ -26,7 +26,7 @@ void Scoreboard::render() {
|
||||
}
|
||||
|
||||
// Actualiza las variables del objeto
|
||||
void Scoreboard::update(float delta_time) {
|
||||
void Scoreboard::update(float /*delta_time*/) {
|
||||
fillTexture();
|
||||
|
||||
if (!is_paused_) {
|
||||
|
||||
@@ -96,7 +96,7 @@ void SolidActorManager::forEachActor(Fn&& fn) const {
|
||||
// Sin esto, Player::stuckAgainstWall no detectaba puertas cerradas en contacto
|
||||
// y la animación "walk" se reproducía aunque el clamp de moveHorizontal
|
||||
// dejase x_ inmóvil.
|
||||
auto SolidActorManager::checkWallLeft(float px, float py, float pw, float ph) const -> float {
|
||||
auto SolidActorManager::checkWallLeft(float px, float py, float /*pw*/, float ph) const -> float {
|
||||
float result = Collision::NONE;
|
||||
forEachActor([&](const SolidActor* a, const SDL_FRect& r) {
|
||||
if (!a->isBlocking()) { return; }
|
||||
|
||||
@@ -82,7 +82,7 @@ static void renderDebugCollisionTilemap(const std::vector<int>& collision_tile_m
|
||||
#endif
|
||||
|
||||
// Pinta el mapa estático
|
||||
void TilemapRenderer::fillMapTexture(const std::vector<int>& collision_tile_map) {
|
||||
void TilemapRenderer::fillMapTexture(const std::vector<int>& /*collision_tile_map*/) {
|
||||
auto previous_renderer = Screen::get()->getRendererSurface();
|
||||
Screen::get()->setRendererSurface(map_surface_);
|
||||
map_surface_->clear(bg_color_);
|
||||
|
||||
@@ -70,7 +70,7 @@ void Logo::handleInput() {
|
||||
}
|
||||
|
||||
// Gestiona el logo de JAILGAME
|
||||
void Logo::updateJAILGAMES(float delta_time) {
|
||||
void Logo::updateJAILGAMES(float /*delta_time*/) {
|
||||
// Solo actualizar durante el estado JAILGAMES_SLIDE_IN
|
||||
if (state_ != State::JAILGAMES_SLIDE_IN) {
|
||||
return;
|
||||
|
||||
@@ -116,7 +116,7 @@ void Title::handleMainMenuKeyPress(SDL_Keycode key) {
|
||||
}
|
||||
|
||||
// Comprueba las entradas
|
||||
void Title::handleInput(float delta_time) {
|
||||
void Title::handleInput(float /*delta_time*/) {
|
||||
Input::get()->update();
|
||||
|
||||
// Permitir cancelar remap con ESC/CANCEL
|
||||
|
||||
Reference in New Issue
Block a user