From 51c9a63a660fe88cfa44d93028e6ae2448fb889d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 22 Mar 2016 22:09:02 +0300 Subject: Not allow moving from sit state if server not support it. --- src/game.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index c59103bb6..0474dad33 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -852,12 +852,12 @@ void Game::handleMove() } // Moving player around - if (localPlayer->isAlive() - && chatWindow - && !chatWindow->isInputFocused() - && !InventoryWindow::isAnyInputFocused() - && !quitDialog - && !popupMenu->isPopupVisible()) + if (chatWindow && + !quitDialog && + localPlayer->canMove() && + !chatWindow->isInputFocused() && + !InventoryWindow::isAnyInputFocused() && + !popupMenu->isPopupVisible()) { NpcDialog *const dialog = NpcDialog::getActive(); if (dialog) -- cgit v1.2.3-60-g2f50