diff options
Diffstat (limited to 'src/versus.c')
-rw-r--r-- | src/versus.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/versus.c b/src/versus.c index 34914bc..4e13f8a 100644 --- a/src/versus.c +++ b/src/versus.c @@ -42,11 +42,11 @@ void versus_main() { MainCamera.offset = (Vector2){0, 0}; MainCamera.rotation = 0; bool VersusGoing = true; - Ball.NextTick = SDL_AtomicGet(&Ticks); - Enemy.NextTick = SDL_AtomicGet(&Ticks); + Ball.NextTick = Ticks; + Enemy.NextTick = Ticks; while(VersusGoing == true && GameGoing == true) { - - if (WindowShouldClose()) { //Quit Game if the window is closed. + internal_clock(); + if (WindowShouldClose()) { //Quit Game if the window is closed. GameGoing = false; } |