escalier custom

This commit is contained in:
cyjullien1
2025-01-07 19:43:36 +01:00
parent 0c20e2ae20
commit d00f1a98a1
7 changed files with 22 additions and 11 deletions

View File

@@ -117,7 +117,7 @@ char canIGoDirection (char valueOfNCase, char valueOfNPlusOneCase)
// move the box but player on a target
return 5;
}
if (valueOfNCase == BUTTON)
if (valueOfNCase == BUTTON || valueOfNCase == BUTTON_CUSTOM )
{
return 7;
}
@@ -602,7 +602,7 @@ int inEditorLoop (char **tab2d, vect *dim_tab, vect *playerPos, vect *targets,
direction.y = 0;
break;
case SDL_SCANCODE_RETURN:
if (tab2d[playerPos->x][playerPos->y] == PLAYER_ON_BUTTON)
if (tab2d[playerPos->x][playerPos->y] == PLAYER_ON_BUTTON )
return indice_button;
break;
default: