diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-08 21:12:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-08 21:12:33 +0300 |
commit | 13b08d35c2d96ae734da14ab58d6263287e342c9 (patch) | |
tree | 2b6ca9bff7fde317dcc9e65504e96c7237b5a3f3 /src/game.cpp | |
parent | 9c1b552de879776dbc963717753913548d6a82d7 (diff) | |
download | manaverse-13b08d35c2d96ae734da14ab58d6263287e342c9.tar.gz manaverse-13b08d35c2d96ae734da14ab58d6263287e342c9.tar.bz2 manaverse-13b08d35c2d96ae734da14ab58d6263287e342c9.tar.xz manaverse-13b08d35c2d96ae734da14ab58d6263287e342c9.zip |
Not allow move with keyboard if popup menu opened.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 5b1c1455e..51d9cab9c 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -59,6 +59,8 @@ #include "gui/fonts/font.h" +#include "gui/popups/popupmenu.h" + #include "gui/windows/bankwindow.h" #include "gui/windows/botcheckerwindow.h" #include "gui/windows/chatwindow.h" @@ -809,7 +811,8 @@ void Game::handleMove() && chatWindow && !chatWindow->isInputFocused() && !InventoryWindow::isAnyInputFocused() - && !quitDialog) + && !quitDialog + && !popupMenu->isPopupVisible()) { NpcDialog *const dialog = NpcDialog::getActive(); if (dialog) |