diff options
author | Charadon <dev@iotib.net> | 2022-06-08 22:14:20 -0400 |
---|---|---|
committer | Charadon <dev@iotib.net> | 2022-06-08 22:14:20 -0400 |
commit | 68401ca778ca0a1ee4fbb68b7be8dd47b63a2738 (patch) | |
tree | f075ea621d92f904864caf2b4dc8382b7c4fcd9a /src | |
parent | 21b272f633d8b55c2bf6c6afe24715eff0a4a207 (diff) | |
download | Pong-C-68401ca778ca0a1ee4fbb68b7be8dd47b63a2738.tar.gz |
Cleaning up clangd's bullshit
Diffstat (limited to 'src')
-rw-r--r-- | src/ball.c | 1 | ||||
-rw-r--r-- | src/enemy.c | 1 | ||||
-rw-r--r-- | src/main.c | 1 | ||||
-rw-r--r-- | src/pong.h | 10 | ||||
-rw-r--r-- | src/versus.c | 1 |
5 files changed, 4 insertions, 10 deletions
diff --git a/src/ball.c b/src/ball.c index f49f775..d7a6b1b 100644 --- a/src/ball.c +++ b/src/ball.c @@ -1,5 +1,4 @@ #include "pong.h" -#include <SDL2/SDL_atomic.h> void ball(Rectangle *Player, Rectangle *Enemy, struct Balls *Ball, int *PlayerScore, int *EnemyScore) { diff --git a/src/enemy.c b/src/enemy.c index dce2570..0f73a55 100644 --- a/src/enemy.c +++ b/src/enemy.c @@ -1,5 +1,4 @@ #include "pong.h" -#include <SDL2/SDL_atomic.h> void enemy(struct Players *Enemy, struct Balls ball) { if (Enemy->NextTick <= SDL_AtomicGet(&Ticks)) { diff --git a/src/main.c b/src/main.c index efd6dd5..51942dd 100644 --- a/src/main.c +++ b/src/main.c @@ -1,5 +1,4 @@ #include "pong.h" -#include <raylib.h> int Difficulty = 1; SDL_atomic_t Ticks; diff --git a/src/pong.h b/src/pong.h index f286406..25ac56b 100644 --- a/src/pong.h +++ b/src/pong.h @@ -1,24 +1,22 @@ #ifndef PONG_H #define PONG_H -#include <SDL2/SDL_atomic.h> #define MOUSE_LEFT_BUTTON MOUSE_BUTTON_LEFT -#include "raylib.h" +#include <raylib.h> #include <SDL2/SDL.h> -#include <SDL2/SDL_atomic.h> #include <SDL2/SDL_audio.h> #include <SDL2/SDL_mixer.h> #include <SDL2/SDL_mutex.h> #include <SDL2/SDL_thread.h> -#include "sounds.h" -#include <stdatomic.h> +#include <SDL2/SDL_atomic.h> #include <stdio.h> #include <time.h> #include <unistd.h> #include <time.h> -#include <stdatomic.h> #include <setjmp.h> #include <string.h> +#include "sounds.h" + #define LEFT 0 #define RIGHT 1 diff --git a/src/versus.c b/src/versus.c index ad0d27e..33fa944 100644 --- a/src/versus.c +++ b/src/versus.c @@ -1,5 +1,4 @@ #include "pong.h" -#include <raylib.h> static void game_thread() { |