1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

* Fixed #33 -> Creatures tend to stop at every hex during movement

This commit is contained in:
beegee1
2011-08-01 17:36:18 +00:00
parent 2272b4a316
commit f609c4ad9a
15 changed files with 77 additions and 51 deletions

View File

@@ -761,7 +761,7 @@ void CPlayerInterface::battleEnd(const BattleResult *br)
battleInt->battleFinished(*br);
}
void CPlayerInterface::battleStackMoved(const CStack * stack, THex dest, int distance, bool end)
void CPlayerInterface::battleStackMoved(const CStack * stack, std::vector<THex> dest, int distance)
{
if(LOCPLINT != this)
{ //another local interface should do this
@@ -769,7 +769,7 @@ void CPlayerInterface::battleStackMoved(const CStack * stack, THex dest, int dis
}
boost::unique_lock<boost::recursive_mutex> un(*pim);
battleInt->stackMoved(stack, dest, end, distance);
battleInt->stackMoved(stack, dest, distance);
}
void CPlayerInterface::battleSpellCast( const BattleSpellCast *sc )
{