Skip to content

Commit

Permalink
Fixed deployment issue for scenarios without a deployment date.
Browse files Browse the repository at this point in the history
Updated the condition to exclude strategic objectives when checking for null deployment dates in scenarios. This ensures that only relevant scenarios get new coordinates, preventing strategic objectives from being relocated erroneously.
  • Loading branch information
IllianiCBT committed Nov 21, 2024
1 parent d34b122 commit ded864f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2037,7 +2037,7 @@ public static void processDailyMovement(Campaign campaign, StratconCampaignState
List<StratconScenario> allScenarios = new ArrayList<>(track.getScenarios().values());

for (StratconScenario scenario : allScenarios) {
if (scenario.getDeploymentDate() == null) {
if (scenario.getDeploymentDate() == null && !scenario.isStrategicObjective()) {
StratconCoords scenarioCoords = scenario.getCoords();
StratconCoords newCoords = getUnoccupiedAdjacentCoords(scenarioCoords, track, true);

Expand Down

0 comments on commit ded864f

Please sign in to comment.