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

CPathfinder: only allow water walking over accessible tiles

This commit is contained in:
ArseniyShestakov 2015-11-05 11:25:41 +03:00
parent 62dc070c0a
commit a1290f548b

View File

@ -292,7 +292,7 @@ bool CPathfinder::isMovementToDestPossible()
break;
case EPathfindingLayer::WATER:
if(!canMoveBetween(cp->coord, dp->coord) || dp->accessible == CGPathNode::BLOCKED)
if(!canMoveBetween(cp->coord, dp->coord) || dp->accessible != CGPathNode::ACCESSIBLE)
return false;
if(isDestinationGuarded())
return false;