Colisiones

This commit is contained in:
2022-09-09 07:53:57 +02:00
parent 197bf71c12
commit 00b47a5910
2 changed files with 10 additions and 10 deletions

View File

@@ -158,7 +158,7 @@ bool checkCollision(h_line_t &l, SDL_Rect &r)
}
// Comprueba si el inicio de la linea esta a la derecha del rectangulo
if (l.x1 >= r.x + r.w)
if (l.x1 > r.x + r.w)
{
return false;
}