mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	[844] - fix pathfinding for fly towards guarded tile
This commit is contained in:
		
				
					committed by
					
						 Andrii Danylchenko
						Andrii Danylchenko
					
				
			
			
				
	
			
			
			
						parent
						
							dab7c41d21
						
					
				
				
					commit
					68d052ac5c
				
			| @@ -620,10 +620,11 @@ void LayerTransitionRule::process( | ||||
| 				destination.blocked = true; | ||||
| 			} | ||||
| 		} | ||||
| 		else if(source.node->accessible != CGPathNode::ACCESSIBLE &&	destination.node->accessible != CGPathNode::ACCESSIBLE) | ||||
| 		else if(destination.node->accessible != CGPathNode::ACCESSIBLE) | ||||
| 		{ | ||||
| 			/// Hero that fly can only land on accessible tiles | ||||
| 			destination.blocked = true; | ||||
| 			if(!destination.isGuardianTile && destination.nodeObject) | ||||
| 				destination.blocked = true; | ||||
| 		} | ||||
|  | ||||
| 		break; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user