Michał W. Urbańczyk 13 vuotta sitten
vanhempi
sitoutus
a833cbd308
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      client/BattleInterface/CBattleInterface.cpp

+ 4 - 0
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);