diff --git a/public_html/js/class.js b/public_html/js/class.js
index be80ca4..4e04599 100644
--- a/public_html/js/class.js
+++ b/public_html/js/class.js
@@ -394,19 +394,20 @@ class PNJ{
}
checkCollisions(){
+ let colliding = false;
map0Squares.forEach((square) => {
if(square.collide(this.x,this.y,this.z))
{
- return true;
+ colliding = true;
}
});
- circles.forEach((circle) => {
+ map0Circles.forEach((circle) => {
if(circle.collide(this.x,this.y,this.z))
{
- return true;
+ colliding = true;
}
});
- return false;
+ return colliding;
}
changeDirection(){