Browse Source

CPathfinder: don't allow future movement after guarded tile

There is two exceptions:
 - Hero start movement from guarded tile.
 - Hero that embarking into boat that standing on guarded tile.
In other cases future movement is impossible.
ArseniyShestakov 10 years ago
parent
commit
3de94a8b99
1 changed files with 0 additions and 2 deletions
  1. 0 2
      lib/CPathfinder.cpp

+ 0 - 2
lib/CPathfinder.cpp

@@ -318,8 +318,6 @@ bool CPathfinder::isMovementAfterDestPossible()
 				return true; // For now we'll always allow transit for teleporters
 			if(useEmbarkCost && options.useEmbarkAndDisembark)
 				return true;
-			if(isDestinationGuarded() && !isSourceGuarded())
-				return true; // Can step into a hostile tile once
 			break;
 
 		case EPathfindingLayer::AIR: