From fab0fccc0aaa18e915bcd08e81e5a04177e435cd Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Mon, 21 Oct 2024 19:06:58 +0200 Subject: fix quad tree collision checker --- Artist.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'Artist.cpp') diff --git a/Artist.cpp b/Artist.cpp index 76e0ca9..6d95542 100644 --- a/Artist.cpp +++ b/Artist.cpp @@ -28,11 +28,6 @@ void Artist::update_edge_collision() { } void Artist::update_movement() { - if (this->data.waiting > 0) { - this->data.waiting--; - return; - } - float last_x = this->data.x; float last_y = this->data.y; @@ -44,8 +39,7 @@ void Artist::update_movement() { } void Artist::update_color() { - // waiting color - if (this->data.waiting > 0) { + if (this->colliding) { this->color = { .red = 0xff, .green = 0x00, -- cgit v1.2.3