Browse Source

Fix not accounting for movement points limit on land bonuses

Ivan Savenko 9 months ago
parent
commit
699709adf0
2 changed files with 2 additions and 2 deletions
  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
 		minSdk = qtMinSdkVersion as Integer
 		targetSdk = qtTargetSdkVersion as Integer // ANDROID_TARGET_SDK_VERSION in the CMake project
 		targetSdk = qtTargetSdkVersion as Integer // ANDROID_TARGET_SDK_VERSION in the CMake project
 
 
-		versionCode 1630
+		versionCode 1632
 		versionName "1.6.3"
 		versionName "1.6.3"
 
 
 		setProperty("archivesBaseName", "vcmi")
 		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 & vectorLand = target->cb->getSettings().getValue(EGameSettings::HEROES_MOVEMENT_POINTS_LAND).Vector();
 		const auto & bonuses = sharedCache->movementPointsLimitLand.getBonusList(target, selector);
 		const auto & bonuses = sharedCache->movementPointsLimitLand.getBonusList(target, selector);
 		int baseMovementPointsLand;
 		int baseMovementPointsLand;