Skip to content

Commit

Permalink
Merge pull request #5091 from IllianiCBT/stratCon_zeroTracks
Browse files Browse the repository at this point in the history
Added Minimum Number of Tracks (1) to StratCon Initialization
  • Loading branch information
HammerGS authored Oct 21, 2024
2 parents 5eb1966 + 6aba2ee commit 09ab139
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static void initializeCampaignState(AtBContract contract, Campaign campai
// scenarios
// when objective is allied/hostile facility, place those facilities

int numTracks = contract.getRequiredLances() / NUM_LANCES_PER_TRACK;
int numTracks = Math.max(1, contract.getRequiredLances() / NUM_LANCES_PER_TRACK);
int planetaryTemperature = campaign.getLocation().getPlanet().getTemperature(campaign.getLocalDate());

for (int x = 0; x < numTracks; x++) {
Expand Down

0 comments on commit 09ab139

Please sign in to comment.