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:09 -0400
committerCharadon <dev@iotib.net>2022-06-13 19:28:09 -0400
commit4b25b1e9f6cc9b1fc3f1342b32aa66f55e5135c1 (patch)
tree3f4d85393bb037f81e0dba06331b8fa7c2d2fd0a /src/marathon.c
parente33f20ad8e35a736996eca1f6a3a63b85a38b3d0 (diff)
downloadPong-C-4b25b1e9f6cc9b1fc3f1342b32aa66f55e5135c1.tar.gz
Revert "Revert "Added liberapay link, and more fruitless work on the internal_clock""
This reverts commit e33f20ad8e35a736996eca1f6a3a63b85a38b3d0.
Diffstat (limited to 'src/marathon.c')
-rw-r--r--src/marathon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/marathon.c b/src/marathon.c
index a04519a..7d38242 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 = SDL_AtomicGet(&Ticks)+1;
+    Ball.NextTick = Ticks+1;
 
     // Init Player
     struct Players Player;
@@ -110,6 +110,7 @@ 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;
         }