1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

CPathfinder: restore transit via garrisons

This commit is contained in:
ArseniyShestakov 2015-11-18 00:07:25 +03:00
parent 511bb54644
commit 7101083a24

View File

@ -395,6 +395,11 @@ bool CPathfinder::isMovementAfterDestPossible() const
/// Transit over whirlpools only allowed when hero protected
return true;
}
else if(dtObj->ID == Obj::GARRISON || dtObj->ID == Obj::GARRISON2)
{
/// Transit via unguarded garrisons is always possible
return true;
}
break;
}