From 50e5479bba5c0d8bd5e28f602ecfeda0ac04bee8 Mon Sep 17 00:00:00 2001 From: fdai7103 Date: Wed, 8 Feb 2023 20:42:00 +0100 Subject: [PATCH] =?UTF-8?q?Bedingung=20f=C3=BCr=20das=20Zeichnen=20der=20W?= =?UTF-8?q?=C3=A4nde=20Korrigiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Paper-Bin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index 27b4d76..05033ee 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -219,7 +219,7 @@ void Generatefield() { field[20][1] = windForce < 0 ? (windForce * -1 + '0') : (windForce + '0'); } - if (wallX > 0 && wallY > 0 && wallLength == 1) + if (wallX > 0 && wallY > 0 && wallLength > 0) { for (int i = wallX; i < +wallX + wallLength; i++) {