summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-03-14 17:57:28 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2022-03-14 17:57:28 -0400
commit0018504aad3018b4cc01d7cb70d2f1033faed96b (patch)
treed3731e0bff2ef52e9e496aa2a96828b9c96d81a4
parenta3b8f0972ea1bbaa456a0c3ae70621e91a2c3ce7 (diff)
downloadether-0018504aad3018b4cc01d7cb70d2f1033faed96b.tar.gz
ether-0018504aad3018b4cc01d7cb70d2f1033faed96b.tar.bz2
ether-0018504aad3018b4cc01d7cb70d2f1033faed96b.zip
you can quit the game during the titles
-rw-r--r--src/main.cpp6
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: {