Faltaba corregir un error de reemplazo en item.cpp

This commit is contained in:
2024-09-06 08:56:12 +02:00
parent 62b1ba84ac
commit 770f0eb046

View File

@@ -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;