Skip to content

Commit 85061ac

Browse files
authored
1 parent a89e132 commit 85061ac

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

CvGameCoreDLL_Expansion2/CvTeam.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,10 @@ void CvTeam::DoMakePeace(PlayerTypes eOriginatingPlayer, bool bPacifier, TeamTyp
23522352
CvPlayer& kPlayer = GET_PLAYER(*it);
23532353
if (kPlayer.isAlive())
23542354
{
2355-
kPlayer.GetDiplomacyAI()->DoWeMadePeaceWithSomeone(eTeam);
2355+
if (kPlayer.isMajorCiv())
2356+
{
2357+
kPlayer.GetDiplomacyAI()->DoWeMadePeaceWithSomeone(eTeam);
2358+
}
23562359
kPlayer.GetMilitaryAI()->LogPeace(eTeam); // This is not quite correct, but it'll work well enough for AI testing
23572360
}
23582361
}
@@ -2362,7 +2365,10 @@ void CvTeam::DoMakePeace(PlayerTypes eOriginatingPlayer, bool bPacifier, TeamTyp
23622365
CvPlayer& kPlayer = GET_PLAYER(*it);
23632366
if (kPlayer.isAlive())
23642367
{
2365-
kPlayer.GetDiplomacyAI()->DoWeMadePeaceWithSomeone(GetID());
2368+
if (kPlayer.isMajorCiv())
2369+
{
2370+
kPlayer.GetDiplomacyAI()->DoWeMadePeaceWithSomeone(GetID());
2371+
}
23662372
kPlayer.GetMilitaryAI()->LogPeace(GetID()); // This is not quite correct, but it'll work well enough for AI testing
23672373
}
23682374
}

0 commit comments

Comments
 (0)