From 0018504aad3018b4cc01d7cb70d2f1033faed96b Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 14 Mar 2022 17:57:28 -0400 Subject: you can quit the game during the titles --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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**) } else { SDL_Event e; - while (SDL_PollEvent(&e)); + while (SDL_PollEvent(&e)) { + if (e.type == SDL_QUIT) { + game.quit = true; + } + } switch (titleState) { case TitleState::FadeIn: { -- cgit 1.4.1