Skip to content

Commit

Permalink
Merge pull request #5891 from SJuliez/round-count-again
Browse files Browse the repository at this point in the history
#5817: Re-apply round increase fix from #5545
  • Loading branch information
rjhancock authored Aug 13, 2024
2 parents 8b0a989 + 50a0f41 commit 73b326a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions megamek/src/megamek/server/TWPhasePreparationManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ void managePhase() {
// commander initiative bonus. Now that initiative is rolled, clear the flag.
gameManager.getGame().getEntitiesVector().forEach(e -> e.getCrew().resetActedFlag());

if (!gameManager.getGame().shouldDeployThisRound()) {
gameManager.incrementAndSendGameRound();
gameManager.autoSaveService.performRollingAutosave();
}
gameManager.incrementAndSendGameRound();
gameManager.autoSaveService.performRollingAutosave();

// setIneligible(phase);
gameManager.determineTurnOrder(phase);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@ void managePhase() {
// new round
gameManager.rollInitiative();

if (!game().shouldDeployThisRound()) {
gameManager.incrementAndSendGameRound();
gameManager.getAutoSaveService().performRollingAutosave();
}
gameManager.incrementAndSendGameRound();
gameManager.getAutoSaveService().performRollingAutosave();

gameManager.initiativeHelper.determineTurnOrder(game().getPhase());
gameManager.initiativeHelper.writeInitiativeReport();
Expand Down

0 comments on commit 73b326a

Please sign in to comment.