Skip to content

Commit

Permalink
Fix minor bug when evaluating movement bonuses for roads
Browse files Browse the repository at this point in the history
  • Loading branch information
KungCheops authored and RecursiveVision committed Jun 5, 2024
1 parent 2f19860 commit 981ec47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CvGameCoreDLL_Expansion2/CvBuilderTaskingAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ int CvBuilderTaskingAI::GetMoveCostWithRoute(const CvPlot* pFromPlot, const CvPl
bIgnoreTerrainCost = true;

//option: river crossings override ignore terrain cost, unless special promotions
if (bIgnoreTerrainCost && (!bRiverCrossing || bIgnoreTerrainCost))
if (bIgnoreTerrainCost && (!bRiverCrossing || /*1*/ GD_INT_GET(IGNORE_TERRAIN_COST_INCLUDES_RIVERS) > 0))
iRegularCost = 1;
else
{
Expand Down

0 comments on commit 981ec47

Please sign in to comment.