From fc3e2deb1fffdf16cbef41c9e0fbfca544061c1d Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Sun, 17 Aug 2025 16:18:48 +0200 Subject: [PATCH] Item fix: alguns items es quedaven engantxats en la part de dalt --- source/item.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/item.cpp b/source/item.cpp index eefce2a..0350f25 100644 --- a/source/item.cpp +++ b/source/item.cpp @@ -92,8 +92,8 @@ void Item::move() { // Corrige pos_y_ = param.game.play_area.rect.y; - // Invierte la velocidad - vel_y_ = -vel_y_; + // Fuerza la velocidad hacia abajo para evitar oscilaciones + vel_y_ = std::abs(vel_y_); } // Si colisiona con la parte inferior