]> git.localhorst.tv Git - blank.git/commitdiff
also exit message state on quit
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 26 Oct 2015 16:25:04 +0000 (17:25 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 26 Oct 2015 16:25:04 +0000 (17:25 +0100)
src/shared/states.cpp

index f98382e39d30b587bcce82a3722dbda9350f3394..1b907150d73e9937f14f99566476b3f972fe32d9 100644 (file)
@@ -138,7 +138,7 @@ void MessageState::ClearMessage() {
 }
 
 void MessageState::Handle(const SDL_Event &e) {
-       if (e.type == SDL_KEYDOWN) {
+       if (e.type == SDL_QUIT || e.type == SDL_KEYDOWN) {
                env.state.Pop();
        }
 }