diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 0d14986..49f5ff2 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -45,7 +45,11 @@ int main(int, char**) | |||
45 | } else { | 45 | } else { |
46 | SDL_Event e; | 46 | SDL_Event e; |
47 | 47 | ||
48 | while (SDL_PollEvent(&e)); | 48 | while (SDL_PollEvent(&e)) { |
49 | if (e.type == SDL_QUIT) { | ||
50 | game.quit = true; | ||
51 | } | ||
52 | } | ||
49 | 53 | ||
50 | switch (titleState) { | 54 | switch (titleState) { |
51 | case TitleState::FadeIn: { | 55 | case TitleState::FadeIn: { |