1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

- a bit nicer stack queue. Check forum for graphics.

- warning fix
This commit is contained in:
Ivan Savenko
2012-08-28 16:28:21 +00:00
parent 0b85cfaf78
commit 8fac276922
5 changed files with 60 additions and 78 deletions

View File

@@ -5798,7 +5798,6 @@ void CGameHandler::runBattle()
removeObstacle(*obstPtr);
}
std::vector<CStack*> & stacks = (gs->curB->stacks);
const BattleInfo & curB = *gs->curB;
//stack loop
@@ -5890,7 +5889,7 @@ void CGameHandler::runBattle()
{
std::vector< const CStack * > possibleStacks;
//is there any clean algorithm for that? (boost.range seems to lack copy_if)
//is there any clean algorithm for that? (boost.range seems to lack copy_if) -> remove_copy_if?
BOOST_FOREACH(const CStack *s, battleGetAllStacks())
if(s->owner == next->owner && s->canBeHealed())
possibleStacks.push_back(s);