mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-29 00:41:38 +02:00
* fixed all problems in engine with wide creatures (I hope) (except problem with range of flying wide creatures)
This commit is contained in:
@ -478,6 +478,11 @@ std::pair< std::vector<int>, int > BattleInfo::getPath(int start, int dest, bool
|
||||
{
|
||||
makeBFS(start, accessibility, predecessor, dist, twoHex, attackerOwned);
|
||||
}
|
||||
|
||||
if(predecessor[dest] == -1) //cannot reach destination
|
||||
{
|
||||
return std::make_pair(std::vector<int>(), 0);
|
||||
}
|
||||
|
||||
//making the Path
|
||||
std::vector<int> path;
|
||||
|
Reference in New Issue
Block a user