From a833cbd308b43a9ed9ec2668fc1f4de70449c94a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20W=2E=20Urba=C5=84czyk?= Date: Thu, 1 Mar 2012 11:57:38 +0000 Subject: [PATCH] Fxied #887. --- client/BattleInterface/CBattleInterface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/BattleInterface/CBattleInterface.cpp b/client/BattleInterface/CBattleInterface.cpp index 5014f1e25..4dcc26d16 100644 --- a/client/BattleInterface/CBattleInterface.cpp +++ b/client/BattleInterface/CBattleInterface.cpp @@ -3072,6 +3072,10 @@ static bool immobile(const CStack *s) void CBattleInterface::bTacticNextStack() { + //no switching stacks when the current one is moving + if(animsAreDisplayed.get()) + return; + TStacks stacksOfMine = tacticianInterface->cb->battleGetStacks(CBattleCallback::ONLY_MINE); stacksOfMine.erase(std::remove_if(stacksOfMine.begin(), stacksOfMine.end(), &immobile), stacksOfMine.end()); TStacks::iterator it = vstd::find(stacksOfMine, activeStack);