From abf07daff1c58311a4eabf5f273d59427d440dad Mon Sep 17 00:00:00 2001 From: fdai7103 Date: Wed, 8 Feb 2023 20:35:48 +0100 Subject: [PATCH] =?UTF-8?q?Level=20auf=20W=C3=A4nde=20pr=C3=BCfen=20und=20?= =?UTF-8?q?in=20Array=20schreiben?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Paper-Bin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index afda5a6..a83fa57 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -218,6 +218,10 @@ void Generatefield() { field[20][1] = windForce < 0 ? (windForce * -1 + '0') : (windForce + '0'); } + if (wallX > 0 && wallY > 0 && wallLength == 1) + { + field[wallX][wallY] = '_'; + } } void addScoreboard()