소스 검색

Merge pull request #5242 from IvanSavenko/kirre_fix

Fix not accounting for movement points limit on land bonuses
Ivan Savenko 11 달 전
부모
커밋
ff598b6eec
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      android/vcmi-app/build.gradle
  2. 1 1
      lib/pathfinder/TurnInfo.cpp

+ 1 - 1
android/vcmi-app/build.gradle

@@ -26,7 +26,7 @@ android {
 		minSdk = qtMinSdkVersion as Integer
 		targetSdk = qtTargetSdkVersion as Integer // ANDROID_TARGET_SDK_VERSION in the CMake project
 
-		versionCode 1630
+		versionCode 1632
 		versionName "1.6.3"
 
 		setProperty("archivesBaseName", "vcmi")

+ 1 - 1
lib/pathfinder/TurnInfo.cpp

@@ -137,7 +137,7 @@ TurnInfo::TurnInfo(TurnInfoCache * sharedCache, const CGHeroInstance * target, i
 	}
 
 	{
-		static const CSelector selector = Selector::typeSubtype(BonusType::MOVEMENT, BonusCustomSubtype::heroMovementSea);
+		static const CSelector selector = Selector::typeSubtype(BonusType::MOVEMENT, BonusCustomSubtype::heroMovementLand);
 		const auto & vectorLand = target->cb->getSettings().getValue(EGameSettings::HEROES_MOVEMENT_POINTS_LAND).Vector();
 		const auto & bonuses = sharedCache->movementPointsLimitLand.getBonusList(target, selector);
 		int baseMovementPointsLand;