Skip to content

Commit

Permalink
Fix #11464
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveVision committed Dec 24, 2024
1 parent e6cd4cc commit b94707b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CvGameCoreDLL_Expansion2/CvCity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22208,7 +22208,7 @@ BuildingTypes CvCity::ChooseFreeCultureBuilding() const
if (pkBuildingInfo)
{
const CvBuildingClassInfo& kBuildingClassInfo = pkBuildingInfo->GetBuildingClassInfo();
if (!isWorldWonderClass(kBuildingClassInfo) && !isNationalWonderClass(kBuildingClassInfo))
if (!isWorldWonderClass(kBuildingClassInfo) && !isNationalWonderClass(kBuildingClassInfo) && !isTeamWonderClass(kBuildingClassInfo))
{
int iCulture = pkBuildingInfo->GetYieldChange(YIELD_CULTURE);
int iCost = pkBuildingInfo->GetProductionCost();
Expand Down Expand Up @@ -22238,7 +22238,7 @@ BuildingTypes CvCity::ChooseFreeCultureBuilding() const
}

// --------------------------------------------------------------------------------
/// Find the non-wonder building that provides the highest culture at the least cost
/// Find the non-wonder building that provides the highest food kept at the least cost
BuildingTypes CvCity::ChooseFreeFoodBuilding() const
{
BuildingTypes eRtnValue = NO_BUILDING;
Expand All @@ -22252,7 +22252,7 @@ BuildingTypes CvCity::ChooseFreeFoodBuilding() const
if (pkBuildingInfo)
{
const CvBuildingClassInfo& kBuildingClassInfo = pkBuildingInfo->GetBuildingClassInfo();
if (!isWorldWonderClass(kBuildingClassInfo) && !isNationalWonderClass(kBuildingClassInfo))
if (!isWorldWonderClass(kBuildingClassInfo) && !isNationalWonderClass(kBuildingClassInfo) && !isTeamWonderClass(kBuildingClassInfo))
{
if (getFirstBuildingOrder(eBuilding) != -1 || canConstruct(eBuilding))
{
Expand Down

0 comments on commit b94707b

Please sign in to comment.