Skip to content

Commit

Permalink
[GameState] The game will now be paused it the window lose the focus.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unarelith committed Feb 24, 2020
1 parent 7e38907 commit 4fc45e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/source/states/GameState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ void GameState::onEvent(const SDL_Event &event) {
}
else if (event.type == SDL_WINDOWEVENT) {
if (event.window.event == SDL_WINDOWEVENT_FOCUS_LOST) {
// FIXME
// m_stateStack->push<PauseMenuState>(m_client, this);
m_stateStack->push<PauseMenuState>(m_client, this);

gk::Mouse::setCursorGrabbed(false);
gk::Mouse::setCursorVisible(true);
Expand Down

0 comments on commit 4fc45e3

Please sign in to comment.