Skip to content

Commit

Permalink
#753 AI kept losing planets, but this was due that planet was doomed.
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomount committed Oct 17, 2024
1 parent f71b689 commit 4002b94
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2408,8 +2408,7 @@ && getTotalPopulation() >= 5) {
msg.setMatchByString(getName());
planetOwnerInfo.getMsgList().addNewMessage(msg);
if (getTotalPopulation() < 1) {
if (!hasStatus(StatusIds.VOLCANIC_ERUPTION)
&& !hasStatus(StatusIds.CLIMATE_COOLDOWN)) {
if (getPopulationLimit() != 0) {
ErrorLogger.log("This probably should not happen but "
+ planetOwnerInfo.getEmpireName()
+ " has lost planet by starvation!!!");
Expand Down

0 comments on commit 4002b94

Please sign in to comment.