about summary refs log tree commit diff stats
path: root/src/versus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/versus.c')
-rw-r--r--src/versus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/versus.c b/src/versus.c
index 4e13f8a..34914bc 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 = Ticks;
-	Enemy.NextTick = Ticks;
+	Ball.NextTick = SDL_AtomicGet(&Ticks);
+	Enemy.NextTick = SDL_AtomicGet(&Ticks);
     while(VersusGoing == true && GameGoing == true) {
-	internal_clock();
-	if (WindowShouldClose()) { //Quit Game if the window is closed.
+		
+		if (WindowShouldClose()) { //Quit Game if the window is closed.
             GameGoing = false;
         }