escalier custom
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user