From ca6e7eb99e864ff662b2e14e6f9679e293ec17d8 Mon Sep 17 00:00:00 2001 From: Charadon Date: Mon, 30 May 2022 22:18:05 -0400 Subject: Fix potential undefined behavior --- src/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 280b16c..89422ba 100644 --- a/src/main.c +++ b/src/main.c @@ -108,6 +108,7 @@ int main() { // Init Player Variables struct Players Player; + Player.Y = 0; Player.Score = 0; char PlayerScore[50]; // Used later to display score on screen. @@ -136,9 +137,6 @@ int main() { Ball.HitBox = (Rectangle){Ball.X, Ball.Y, BallSprite.width, BallSprite.height}; Enemy.BallDetector = (Rectangle){0, Enemy.Y+120, 1280, PaddleSprite.height/5.0f}; - // Debug - Player.Y = 200; - // Initialize Internal Clock thrd_t InternalClock; thrd_create(&InternalClock, internal_clock, NULL); -- cgit 1.4.1-2-gfad0