Skip to content

Commit

Permalink
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CvGameCoreDLL_Expansion2/CvPlot.cpp
Original file line number Diff line number Diff line change
@@ -11059,7 +11059,7 @@ int CvPlot::calculateYieldFast(YieldTypes eYield, bool bDisplay, const CvCity* p
eRoute = NO_ROUTE;

FeatureTypes eFeature = getFeatureType();
ResourceTypes eResource = getResourceType(GET_PLAYER(ePlayer).getTeam());
ResourceTypes eResource = bDisplay ? getResourceType(GC.getGame().getActiveTeam()) : getResourceType(GET_PLAYER(ePlayer).getTeam());

int iYield = calculateNatureYield(eYield, ePlayer, eFeature, eResource, pOwningCity, bDisplay);
iYield += calculateReligionImprovementYield(eYield, ePlayer, eImprovement, eResource, pOwningCity, pMajorityReligion, pSecondaryPantheon);
5 changes: 5 additions & 0 deletions CvGameCoreDLL_Expansion2/CvTeam.cpp
Original file line number Diff line number Diff line change
@@ -6302,6 +6302,7 @@ void CvTeam::setHasTech(TechTypes eIndex, bool bNewValue, PlayerTypes ePlayer, b
{
pLoopPlot->setLayoutDirty(true);
}
pLoopPlot->updateSymbols();
}

for (int iI = 0; iI < MAX_PLAYERS; iI++)
@@ -6424,6 +6425,10 @@ void CvTeam::setHasTech(TechTypes eIndex, bool bNewValue, PlayerTypes ePlayer, b
{
if (pLoopPlot->getResourceType() != NO_RESOURCE)
{
if (bIsActiveTeam)
{
pLoopPlot->updateSymbols();
}
for (int iI = 0; iI < MAX_PLAYERS; iI++)
{
const PlayerTypes eLoopPlayer = static_cast<PlayerTypes>(iI);

0 comments on commit 695a135

Please sign in to comment.