diff --git a/CvGameCoreDLL_Expansion2/CvBuilderTaskingAI.cpp b/CvGameCoreDLL_Expansion2/CvBuilderTaskingAI.cpp index 9f2d2158d0..37a3310ca3 100644 --- a/CvGameCoreDLL_Expansion2/CvBuilderTaskingAI.cpp +++ b/CvGameCoreDLL_Expansion2/CvBuilderTaskingAI.cpp @@ -4359,7 +4359,7 @@ void CvBuilderTaskingAI::LogDirective(BuilderDirective directive, int iWeight, b if(!m_bLogging) return; - if (GC.getBuildInfo(directive.m_eBuild) == NULL) + if (directive.m_eBuild == NO_BUILD || GC.getBuildInfo(directive.m_eBuild) == NULL) return; CvString strLog; diff --git a/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp b/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp index 6864a9fb44..6e84a2b550 100644 --- a/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp +++ b/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp @@ -31838,9 +31838,6 @@ void CvDiplomacyAI::DoContactPlayer(PlayerTypes ePlayer) DoMakeVassalageStatement(ePlayer, eStatement, pDeal); DoLiberateMyVassalStatement(ePlayer, eStatement); - - DoVassalTaxesRaisedStatement(ePlayer, eStatement); - DoVassalTaxesLoweredStatement(ePlayer, eStatement); } // OFFERS - all members but ePlayer passed by address @@ -31894,6 +31891,9 @@ void CvDiplomacyAI::DoContactPlayer(PlayerTypes ePlayer) DoHappySamePolicyTree(ePlayer, eStatement); DoIdeologicalStatement(ePlayer, eStatement); DoVictoryCompetitionStatement(ePlayer, eStatement); + + DoVassalTaxesRaisedStatement(ePlayer, eStatement); + DoVassalTaxesLoweredStatement(ePlayer, eStatement); } } } @@ -54706,7 +54706,7 @@ void CvDiplomacyAI::DoVassalTaxesLoweredStatement(PlayerTypes ePlayer, DiploStat if(GET_PLAYER(ePlayer).GetDiplomacyAI()->IsVassalTaxLowered(GetID())) { eStatement = DIPLO_STATEMENT_VASSAL_TAXES_LOWERED_AI_MASTER; - + for(int iPlayerLoop = 0; iPlayerLoop < MAX_MAJOR_CIVS; iPlayerLoop++) { PlayerTypes eLoopPlayer = (PlayerTypes) iPlayerLoop; diff --git a/CvGameCoreDLL_Expansion2/CvEspionageClasses.cpp b/CvGameCoreDLL_Expansion2/CvEspionageClasses.cpp index 905ddc0ef5..27d3350440 100644 --- a/CvGameCoreDLL_Expansion2/CvEspionageClasses.cpp +++ b/CvGameCoreDLL_Expansion2/CvEspionageClasses.cpp @@ -3297,7 +3297,7 @@ int CvPlayerEspionage::CalcNetworkPointsPerTurn(CvSpyState eSpyState, CvCity* pC PlayerTypes eCityOwner = pCity->getOwner(); // Base Influence - iTemp = /*20*/ GD_INT_GET(ESPIONAGE_NP_BASE); + iTemp = /*30*/ GD_INT_GET(ESPIONAGE_NP_BASE); iNP += iTemp; GC.getGame().BuildProdModHelpText(toolTipSink, "TXT_KEY_EO_NETWORK_POINTS_BASE_TT", iTemp); diff --git a/CvGameCoreDLL_Expansion2/CvPlayer.cpp b/CvGameCoreDLL_Expansion2/CvPlayer.cpp index 0eeeb5f1f1..55f8b252e9 100644 --- a/CvGameCoreDLL_Expansion2/CvPlayer.cpp +++ b/CvGameCoreDLL_Expansion2/CvPlayer.cpp @@ -35711,7 +35711,7 @@ void CvPlayer::SetProximityToPlayer(PlayerTypes ePlayer, PlayerProximityTypes eP PRECONDITION(eProximity >= NO_PLAYER_PROXIMITY, "eIndex is expected to be non-negative (invalid Index)"); // NO_PLAYER_PROXIMITY is valid because some players may have no Cities (e.g. on the first turn) PRECONDITION(eProximity < NUM_PLAYER_PROXIMITIES, "eIndex is expected to be within maximum bounds (invalid Index)"); - if((GC.getLogging() && GC.getAILogging())) + if(GC.getLogging() && GC.getAILogging() && GET_PLAYER(ePlayer).isEverAlive()) { if(eProximity != m_aiProximityToPlayer[ePlayer]) { diff --git a/CvGameCoreDLL_Expansion2/CvUnit.cpp b/CvGameCoreDLL_Expansion2/CvUnit.cpp index e3ee3a5fbd..d0efd2ab27 100644 --- a/CvGameCoreDLL_Expansion2/CvUnit.cpp +++ b/CvGameCoreDLL_Expansion2/CvUnit.cpp @@ -7473,22 +7473,18 @@ void CvUnit::LogWorkerEvent(BuildTypes eBuildType, bool bStartingConstruction) ImprovementTypes eImprovement = (ImprovementTypes)GC.getBuildInfo(eBuildType)->getImprovement(); if(eImprovement != NO_IMPROVEMENT) { - ResourceTypes eResource = plot()->getResourceType(getTeam()); - CvResourceInfo* pkResourceInfo = GC.getResourceInfo(eResource); - if (pkResourceInfo) + ResourceTypes eResource = plot()->getResourceType(NO_TEAM); + if (eResource != NO_RESOURCE) { - if (eResource != NO_RESOURCE) - { - strResource = pkResourceInfo->GetType(); - strResource += ","; - } - else if (plot()->getResourceType(NO_TEAM) != NO_RESOURCE) + CvResourceInfo* pkResourceInfo = GC.getResourceInfo(eResource); + if (pkResourceInfo) { - eResource = plot()->getResourceType(NO_TEAM); strResource = pkResourceInfo->GetType(); strResource += ","; - - strCanSee = "Can't see!,"; + if (plot()->getResourceType(getTeam()) == NO_RESOURCE) + { + strCanSee = "Can't see!,"; + } } } }