summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index 771aa1c..e5a96e4 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -50,7 +50,7 @@ void loop(Renderer& renderer) {
50 50
51 size_t lastTime = SDL_GetTicks(); 51 size_t lastTime = SDL_GetTicks();
52 52
53 for (;;) { 53 while (!game.shouldQuit()) {
54 size_t currentTime = SDL_GetTicks(); 54 size_t currentTime = SDL_GetTicks();
55 size_t frameTime = currentTime - lastTime; 55 size_t frameTime = currentTime - lastTime;
56 lastTime = currentTime; 56 lastTime = currentTime;
@@ -60,10 +60,6 @@ void loop(Renderer& renderer) {
60 } 60 }
61 61
62 renderer.render(game); 62 renderer.render(game);
63
64 if (game.shouldQuit()) {
65 return;
66 }
67 } 63 }
68} 64}
69 65