about summary refs log tree commit diff stats
path: root/src/marathon.c
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-06-13 19:28:37 -0400
committerCharadon <dev@iotib.net>2022-06-13 19:28:37 -0400
commit520a610a8db7c07423fec086806b48ff2890c9c0 (patch)
treebbe7ad6f4050304eb922abd6fc6fd89f6d0a7f40 /src/marathon.c
parent0e1a3565cd077a297c07bad7466f317025758b31 (diff)
downloadPong-C-520a610a8db7c07423fec086806b48ff2890c9c0.tar.gz
Revert "Revert "Revert "Revert "Revert "Added liberapay link, and more fruitless work on the internal_clock"""""
This reverts commit 0e1a3565cd077a297c07bad7466f317025758b31.
Diffstat (limited to 'src/marathon.c')
-rw-r--r--src/marathon.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/marathon.c b/src/marathon.c
index 7d38242..a04519a 100644
--- a/src/marathon.c
+++ b/src/marathon.c
@@ -85,7 +85,7 @@ void marathon_main() {
 	Ball.Direction = LEFT;
 	Ball.Speed = 3.0f;
 	Ball.Angle = 0.0f;
-    Ball.NextTick = Ticks+1;
+    Ball.NextTick = SDL_AtomicGet(&Ticks)+1;
 
     // Init Player
     struct Players Player;
@@ -110,7 +110,6 @@ void marathon_main() {
         MainCamera.rotation = 0;
     bool MarathonGoing = true;
     while(MarathonGoing == true && GameGoing == true) {
-	internal_clock();
         if (WindowShouldClose()) { //Quit Game if the window is closed.
             GameGoing = false;
         }