From d006feeb45ba5c1321720ff3f26993d72ecf2bf7 Mon Sep 17 00:00:00 2001 From: fdai7037 Date: Wed, 8 Feb 2023 20:33:17 +0100 Subject: [PATCH] =?UTF-8?q?Anzeige=20der=20Windst=C3=A4rke=20eingef=C3=BCg?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Paper-Bin.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index 7aa4a00..80f4d44 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -211,6 +211,13 @@ void Generatefield() { field[3][1] = lifeCount < 3 ? 'X' : 'O'; field[2][1] = lifeCount < 2 ? 'X' : 'O'; field[3][1] = lifeCount < 3 ? 'X' : 'O'; + + if (windForce > 0) + { + field[19][1] = windForce < 0 ? '<' : '>'; + field[20][1] = windForce < 0 ? (windForce * -2 + '0') : (windForce + '0'); + } + } void addScoreboard()