mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
CPathfinder: add rule that hero in boat can't visit empty boats
This commit is contained in:
@ -387,6 +387,11 @@ bool CPathfinder::isMovementToDestPossible() const
|
|||||||
if(dObj->ID != Obj::BOAT && dObj->ID != Obj::HERO)
|
if(dObj->ID != Obj::BOAT && dObj->ID != Obj::HERO)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
else if(dObj && dObj->ID == Obj::BOAT)
|
||||||
|
{
|
||||||
|
/// Hero in boat can't visit empty boats
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user