From a77663b73d958600caaebecee410f7c44bd60118 Mon Sep 17 00:00:00 2001 From: Ronja Awe Date: Wed, 1 Feb 2023 10:09:40 +0100 Subject: [PATCH] =?UTF-8?q?refactoring:=20variablennamen=20ge=C3=A4ndert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/c/labyrinth.c | 4 ++-- src/c/labyrinth.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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