From 5ced7d7adef17db7c2de8dafd5d8bf684bdb1ad7 Mon Sep 17 00:00:00 2001 From: Pradana AUMARS Date: Mon, 28 Jun 2021 16:03:17 +0200 Subject: [PATCH] Revert "Added ANGLE_MIN_OFFSET and ANGLE_MAX_OFFSET" This reverts commit 30fc668684e653eaa54103d562c79eda1c636387. --- src/ball.h | 2 -- src/pong.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ball.h b/src/ball.h index bb2dc5e..cd9b40d 100644 --- a/src/ball.h +++ b/src/ball.h @@ -11,8 +11,6 @@ typedef struct Ball { const int BALL_HEIGHT; const int BALL_VELOCITY; const int BALL_POSX_START; - const int BALL_ANGLE_MIN_OFFSET; - const int BALL_ANGLE_MAX_OFFSET; const int SCREEN_WIDTH; const int SCREEN_HEIGHT; int posX; diff --git a/src/pong.c b/src/pong.c index 7352bd8..9964da3 100644 --- a/src/pong.c +++ b/src/pong.c @@ -109,7 +109,7 @@ Pong_run(Pong *p) { Racket_move(p->racketL); Racket_move(p->racketR); Pong_render(p); - //Pong_score_run(p); + Pong_score_run(p); } Pong_score_end(p); }