X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fshared%2Fstates.cpp;h=1b907150d73e9937f14f99566476b3f972fe32d9;hb=7354c74fb8f409336db3a6d70455fbc10232ae64;hp=f98382e39d30b587bcce82a3722dbda9350f3394;hpb=10a310869c61cc52046e165f36ac9639fe9d0c69;p=blank.git diff --git a/src/shared/states.cpp b/src/shared/states.cpp index f98382e..1b90715 100644 --- a/src/shared/states.cpp +++ b/src/shared/states.cpp @@ -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(); } }