about summary refs log tree commit diff stats
path: root/src/versus.c
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-06-13 19:28:23 -0400
committerCharadon <dev@iotib.net>2022-06-13 19:28:23 -0400
commitaa7b6d5963aa4cbc33d529f91c57fb611c50a8d7 (patch)
treebbe7ad6f4050304eb922abd6fc6fd89f6d0a7f40 /src/versus.c
parent4b25b1e9f6cc9b1fc3f1342b32aa66f55e5135c1 (diff)
downloadPong-C-aa7b6d5963aa4cbc33d529f91c57fb611c50a8d7.tar.gz
Revert "Revert "Revert "Added liberapay link, and more fruitless work on the internal_clock"""
This reverts commit 4b25b1e9f6cc9b1fc3f1342b32aa66f55e5135c1.
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;
         }