Skip to content

Commit

Permalink
Fix negative gold from city connections with low pops
Browse files Browse the repository at this point in the history
  • Loading branch information
KungCheops authored and RecursiveVision committed Nov 4, 2024
1 parent b27271c commit e09ad48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CvGameCoreDLL_Expansion2/CvTreasury.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ int CvTreasury::GetCityConnectionRouteGoldTimes100(const CvCity* pNonCapitalCity
iGold += pNonCapitalCity->getPopulation() * /*110 in CP, 50 in VP*/ GD_INT_GET(TRADE_ROUTE_CITY_POP_GOLD_MULTIPLIER); // City Multiplier
iGold += GetCityConnectionTradeRouteGoldChange() * 100;

if (iGold <= 0)
return 0;

int iMod = GetCityConnectionTradeRouteGoldModifier() + pNonCapitalCity->GetCityConnectionTradeRouteGoldModifier();
if (iMod != 0)
{
Expand Down

0 comments on commit e09ad48

Please sign in to comment.