summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-11-09 03:16:39 +0300
committerAndrei Karas <akaras@inbox.ru>2011-11-09 03:16:39 +0300
commit955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338 (patch)
tree8f5fc1cd758da4bda6a305ebcd95d3ccd719d98e /src/game.cpp
parent274737b8d9b46dfcf6fc696123e869bbf6adaaf6 (diff)
downloadmv-955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338.tar.gz
mv-955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338.tar.bz2
mv-955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338.tar.xz
mv-955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338.zip
Fix code style.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp7
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))