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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/versus.c b/src/versus.c
index 45a796d..34914bc 100644
--- a/src/versus.c
+++ b/src/versus.c
@@ -42,8 +42,8 @@ void versus_main() {
         MainCamera.offset = (Vector2){0, 0};
         MainCamera.rotation = 0;
 	bool VersusGoing = true;
-	Ball.NextTick = 0;
-	Enemy.NextTick = 0;
+	Ball.NextTick = SDL_AtomicGet(&Ticks);
+	Enemy.NextTick = SDL_AtomicGet(&Ticks);
     while(VersusGoing == true && GameGoing == true) {
 		
 		if (WindowShouldClose()) { //Quit Game if the window is closed.