From a684cc35cb54c676129bf94ccfb83c09c57058c6 Mon Sep 17 00:00:00 2001 From: fdai7037 Date: Wed, 8 Feb 2023 20:39:08 +0100 Subject: [PATCH] =?UTF-8?q?W=C3=A4ndezeichnung=20in=20der=20Konsole=20korr?= =?UTF-8?q?igiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Paper-Bin.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index a83fa57..b1fadf3 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -220,7 +220,11 @@ void Generatefield() { if (wallX > 0 && wallY > 0 && wallLength == 1) { - field[wallX][wallY] = '_'; + for (int i = wallX; i < +wallX + wallLength; i++) + { + field[i][wallY] = '_'; + } + } }