From 415f2904045065a859169b6a8c6eb3f8effc2eda Mon Sep 17 00:00:00 2001 From: David PC Saiz Date: Wed, 8 Feb 2023 20:34:46 +0100 Subject: [PATCH] =?UTF-8?q?Werte=20bei=20der=20Anzeige=20der=20Windst?= =?UTF-8?q?=C3=A4rke=20korrigiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Paper-Bin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index 80f4d44..afda5a6 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -212,10 +212,10 @@ void Generatefield() { field[2][1] = lifeCount < 2 ? 'X' : 'O'; field[3][1] = lifeCount < 3 ? 'X' : 'O'; - if (windForce > 0) + if (windForce != 0) { field[19][1] = windForce < 0 ? '<' : '>'; - field[20][1] = windForce < 0 ? (windForce * -2 + '0') : (windForce + '0'); + field[20][1] = windForce < 0 ? (windForce * -1 + '0') : (windForce + '0'); } }