diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-11-09 03:16:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-11-09 03:16:39 +0300 |
commit | 955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338 (patch) | |
tree | 8f5fc1cd758da4bda6a305ebcd95d3ccd719d98e /src/game.cpp | |
parent | 274737b8d9b46dfcf6fc696123e869bbf6adaaf6 (diff) | |
download | manaverse-955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338.tar.gz manaverse-955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338.tar.bz2 manaverse-955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338.tar.xz manaverse-955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338.zip |
Fix code style.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index d5cfad13a..0825a74cf 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -840,9 +840,14 @@ void Game::handleInput() helpWindow->setVisible(false); // Close the config window, cancelling changes if opened else if (setupWindow->isVisible()) - setupWindow->action(gcn::ActionEvent(nullptr, "cancel")); + { + setupWindow->action(gcn::ActionEvent( + nullptr, "cancel")); + } else if (dialog) + { dialog->action(gcn::ActionEvent(nullptr, "ok")); + } } if (chatWindow && keyboard.isKeyActive( keyboard.KEY_TOGGLE_CHAT)) |