retirer ligne noire

This commit is contained in:
2024-12-15 13:15:04 +01:00
parent 0553a603ff
commit 18a0978ab6
4 changed files with 9 additions and 6 deletions

View File

@@ -335,7 +335,8 @@ bool blockBox (unsigned short int **tab2d, vect box_coor)
if (test_add_other.x == 0 && test_add_other.y == 0)
{
if ((val1 == WALL || val1 == BOX || val1 == BOX_ON_TARGET))
if ((val1 == WALL || val1 == BOX || val1 == BOX_ON_TARGET)
|| (val2 == WALL || val2 == BOX || val2 == BOX_ON_TARGET))
{
return true;
}