1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-07 23:33:15 +02:00

* fixed crash on after attack spell casting

* more aggressive stack direction normalization after action
* artillery support
This commit is contained in:
mateuszb
2011-02-23 17:10:35 +00:00
parent e979802012
commit 6d6a1af9ed
2 changed files with 20 additions and 3 deletions

View File

@@ -3321,9 +3321,11 @@ void CBattleInterface::endAction(const BattleAction* action)
}
//check if we should reverse stacks
std::set<const CStack *> stacks;
stacks.insert(LOCPLINT->cb->battleGetStackByID(action->stackNumber));
stacks.insert(LOCPLINT->cb->battleGetStackByPos(action->destinationTile));
//for some strange reason, it's not enough
// std::set<const CStack *> stacks;
// stacks.insert(LOCPLINT->cb->battleGetStackByID(action->stackNumber));
// stacks.insert(LOCPLINT->cb->battleGetStackByPos(action->destinationTile));
TStacks stacks = curInt->cb->battleGetStacks(IBattleCallback::MINE_AND_ENEMY);
BOOST_FOREACH(const CStack *s, stacks)
{