mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-14 02:33:51 +02:00
Fxied #887.
This commit is contained in:
parent
18b1b83c8a
commit
a833cbd308
@ -3072,6 +3072,10 @@ static bool immobile(const CStack *s)
|
|||||||
|
|
||||||
void CBattleInterface::bTacticNextStack()
|
void CBattleInterface::bTacticNextStack()
|
||||||
{
|
{
|
||||||
|
//no switching stacks when the current one is moving
|
||||||
|
if(animsAreDisplayed.get())
|
||||||
|
return;
|
||||||
|
|
||||||
TStacks stacksOfMine = tacticianInterface->cb->battleGetStacks(CBattleCallback::ONLY_MINE);
|
TStacks stacksOfMine = tacticianInterface->cb->battleGetStacks(CBattleCallback::ONLY_MINE);
|
||||||
stacksOfMine.erase(std::remove_if(stacksOfMine.begin(), stacksOfMine.end(), &immobile), stacksOfMine.end());
|
stacksOfMine.erase(std::remove_if(stacksOfMine.begin(), stacksOfMine.end(), &immobile), stacksOfMine.end());
|
||||||
TStacks::iterator it = vstd::find(stacksOfMine, activeStack);
|
TStacks::iterator it = vstd::find(stacksOfMine, activeStack);
|
||||||
|
Loading…
Reference in New Issue
Block a user