Przeglądaj źródła

fix movement cost on Favorable Winds

Andrey Filipenkov 2 lat temu
rodzic
commit
0c7b5ac793
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      lib/CPathfinder.cpp

+ 2 - 2
lib/CPathfinder.cpp

@@ -1234,8 +1234,8 @@ int CPathfinderHelper::getMovementCost(
 	int ret = hero->getTileCost(*dt, *ct, ti);
 	if(hero->boat != nullptr && dt->terType->isWater())
 	{
-		if(ct->hasFavorableWinds() && dt->hasFavorableWinds())
-			ret = static_cast<int>(ret * 0.666);
+		if(ct->hasFavorableWinds())
+			ret = static_cast<int>(ret * 2.0 / 3);
 	}
 	else if(ti->hasBonusOfType(Bonus::FLYING_MOVEMENT))
 		vstd::amin(ret, GameConstants::BASE_MOVEMENT_COST + ti->valOfBonuses(Bonus::FLYING_MOVEMENT));