diff --git a/src/c/labyrinth.c b/src/c/labyrinth.c index e177437..cb15a6b 100644 --- a/src/c/labyrinth.c +++ b/src/c/labyrinth.c @@ -19,9 +19,9 @@ int printlabyrinth(lab laby, int hoehe, int breite){ return 0; } -int wegsuchen(lab laby, int startx, int starty, int zielx, int ziely){ +int wegsuchen(lab laby, int y, int x, int ziely, int zielx){ - if(startx == zielx && starty == ziely){ + if(x == zielx && y == ziely){ return 0; } else{ diff --git a/src/c/labyrinth.h b/src/c/labyrinth.h index 35e6aae..3d1ee01 100644 --- a/src/c/labyrinth.h +++ b/src/c/labyrinth.h @@ -6,6 +6,6 @@ typedef char lab[MAXZEILEN][MAXSPALTEN]; int printlabyrinth(lab laby, int hoehe, int breite); -int wegsuchen(lab laby, int startx, int starty, int zielx, int ziely); +int wegsuchen(lab laby, int y, int x, int ziely, int zielx); #endif \ No newline at end of file