1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-29 00:41:38 +02:00

* fixes for moving War Machines

* automatic merging same creatures stacks if needed when moving hero to town garrison
* minor improvements
This commit is contained in:
Michał W. Urbańczyk
2009-09-11 05:45:40 +00:00
parent a9617b3dfd
commit df87b34662
8 changed files with 125 additions and 45 deletions

View File

@ -2097,6 +2097,7 @@ void CGameState::calculatePaths(const CGHeroInstance *hero, CPathsInfo &out, int
|| dp.turns > turn
|| (dp.turns >= turn && dp.moveRemains < remains)) //this route is faster
{
assert(&dp != cp->theNodeBefore); //two tiles can't point to each other
dp.moveRemains = remains;
dp.turns = turn;
dp.theNodeBefore = cp;