Skip to content

Commit

Permalink
Add conditional check for StratCon before processing mass rout
Browse files Browse the repository at this point in the history
Ensured that mass rout processing in AtBContract only occurs when StratCon is enabled in campaign options. This change prevents unnecessary operations and aligns with the intended functionality of user-defined campaign options.
  • Loading branch information
IllianiCBT committed Nov 21, 2024
1 parent 6450289 commit b961d1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MekHQ/src/mekhq/campaign/mission/AtBContract.java
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,9 @@ public void checkMorale(Campaign campaign, LocalDate today) {
setEndDate(today.plusDays(1));
}

processMassRout(campaign, getStratconCampaignState());
if (campaign.getCampaignOptions().isUseStratCon()) {
processMassRout(campaign, getStratconCampaignState());
}
}

// Process the results of the reinforcement roll
Expand Down

0 comments on commit b961d1f

Please sign in to comment.