aboutsummaryrefslogtreecommitdiff
path: root/Artist.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-21 19:06:58 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-21 19:06:58 +0200
commitfab0fccc0aaa18e915bcd08e81e5a04177e435cd (patch)
tree0e8e51ff61c88b60d1f845bc9fde20ea5ba7099b /Artist.cpp
parent10ce9f45b9551dc103272c2b2374db1c1e3b8bcb (diff)
fix quad tree collision checker
Diffstat (limited to 'Artist.cpp')
-rw-r--r--Artist.cpp8
1 files changed, 1 insertions, 7 deletions
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,