From 5d6047b6426a4ee9a909cf6eeb63bb8d5515aac8 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Fri, 27 Aug 2021 08:58:54 +0200 Subject: [PATCH] bug hunting coffee machine on windows --- source/item.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/item.cpp b/source/item.cpp index 18034fe..3e9b2e3 100644 --- a/source/item.cpp +++ b/source/item.cpp @@ -102,6 +102,17 @@ void Item::init(Uint8 value, float x, float y, LTexture *texture, SDL_Renderer * default: break; } + + if (mClass == ITEM_COFFEE_MACHINE) + { + printf("---\n"); + printf("x\t%f\n", mPosX); + printf("y\t%f\n", mPosY); + printf("ax\t%f\n", mAccelX); + printf("ay\t%f\n", mAccelY); + printf("r\t%f\n", mCollider.r); + printf("---\n"); + } } // Centra el objeto en la posición X