diff options
Diffstat (limited to 'src/marathon.c')
-rw-r--r-- | src/marathon.c | 3 |
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; } |