From e9d4976b2da5493fbefb4c02767586f8c1360af6 Mon Sep 17 00:00:00 2001 From: fdai8040 Date: Wed, 7 Feb 2024 10:07:38 +0000 Subject: [PATCH] refactoring: aktualisieren_spezifier --- src/main/c/Pong/pong.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/c/Pong/pong.c b/src/main/c/Pong/pong.c index d962a4c..190f4c8 100644 --- a/src/main/c/Pong/pong.c +++ b/src/main/c/Pong/pong.c @@ -34,11 +34,11 @@ void drawField(int paddle1PositionY, int paddle2PositionY, Ball ball, int score1 } else if ((j == 0 || j == WIDTH) && (i < paddle1PositionY || i >= paddle1PositionY + PADDLE_LENGTH) && (i < paddle2PositionY || i >= paddle2PositionY + PADDLE_LENGTH)) { printf("|"); } else if (i >= paddle1PositionY && i < paddle1PositionY + PADDLE_LENGTH && j == WIDTH) { - printf("%c", PADDLE); + printf("%s", PADDLE); } else if (i >= paddle2PositionY && i < paddle2PositionY + PADDLE_LENGTH && j == 0) { - printf("%c", PADDLE); + printf("%s", PADDLE); } else if (i == ball.y && j == ball.x) { - printf("%c", BALL); + printf("%s", BALL); } else { printf(" "); }