Ver código fonte

CPathfinder: restore transit via garrisons

ArseniyShestakov 10 anos atrás
pai
commit
7101083a24
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      lib/CPathfinder.cpp

+ 5 - 0
lib/CPathfinder.cpp

@@ -395,6 +395,11 @@ bool CPathfinder::isMovementAfterDestPossible() const
 			/// Transit over whirlpools only allowed when hero protected
 			return true;
 		}
+		else if(dtObj->ID == Obj::GARRISON || dtObj->ID == Obj::GARRISON2)
+		{
+			/// Transit via unguarded garrisons is always possible
+			return true;
+		}
 
 		break;
 	}