Skip to content

Commit

Permalink
CampaignAI: Wait for the human player to find the AI player before be…
Browse files Browse the repository at this point in the history
…coming active
  • Loading branch information
Richard-Schaller committed May 26, 2019
1 parent fcb2f2f commit 89b56c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/players/CampaignAIPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ void CampaignAIPlayer::update() {
return;
}

if(!getHouse()->hadContactWithEnemy()) {
// we are not doing anything until we had contact with the enemy
return;
}

updateStructures();
updateUnits();
}
Expand Down

0 comments on commit 89b56c8

Please sign in to comment.