diff options
Diffstat (limited to 'src/enemy.c')
-rw-r--r-- | src/enemy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/enemy.c b/src/enemy.c index 5350770..5a7e99b 100644 --- a/src/enemy.c +++ b/src/enemy.c @@ -1,8 +1,7 @@ -#include "raylib.h" #include "pong.h" void enemy(struct Players *Enemy, struct Balls ball) { - if (atomic_load(&Ticks) % 1 == 0) { + if (SDL_AtomicGet(&Ticks) % 1 == 0) { if (!CheckCollisionRecs(ball.HitBox, Enemy->BallDetector)) { if (Enemy->Y+120 > ball.Y) { Enemy->Direction = 0; |