diff options
Diffstat (limited to 'src/ui_menu.cpp')
-rw-r--r-- | src/ui_menu.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui_menu.cpp b/src/ui_menu.cpp index 11c10a7..a48182b 100644 --- a/src/ui_menu.cpp +++ b/src/ui_menu.cpp @@ -11,12 +11,12 @@ static Menu* currentMenu = nullptr; -void SDLReceiver::receive(const MainSDLEvent& mse) +bool SDLReceiver::receive(const MainSDLEvent& mse) { switch (mse.event.type) { case SDL_QUIT: game::endGame(); - return; + return true; break; case SDL_MOUSEMOTION: //ui::premouse.x = e.motion.x; @@ -36,6 +36,7 @@ void SDLReceiver::receive(const MainSDLEvent& mse) default: break; } + return true; } bool SDLReceiver::clicked = false; |