From 770f0eb04638d5adcfdc6a9f93dde2bd868bb692 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Fri, 6 Sep 2024 08:56:12 +0200 Subject: [PATCH] Faltaba corregir un error de reemplazo en item.cpp --- source/item.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/item.cpp b/source/item.cpp index a7dbb16..844eae2 100644 --- a/source/item.cpp +++ b/source/item.cpp @@ -119,7 +119,7 @@ void Item::move() } // Si el objeto se sale por la parte inferior - if (posY + height > playArea->w) + if (posY + height > playArea->h) { // Corrige posY -= velY; @@ -129,7 +129,7 @@ void Item::move() velX = 0; accelX = 0; accelY = 0; - posY = playArea->w - height; + posY = playArea->h - height; if (kind == ITEM_COFFEE_MACHINE) { floorCollision = true;