diff --git a/GoldWars/GoldWars/RoundCalculatorService.swift b/GoldWars/GoldWars/RoundCalculatorService.swift index a68ad9c..c7707b2 100644 --- a/GoldWars/GoldWars/RoundCalculatorService.swift +++ b/GoldWars/GoldWars/RoundCalculatorService.swift @@ -32,6 +32,9 @@ class RoundCalculatorService { roundNr += 1 print("roundNR \(roundNr)") + print("entered syncingSt in calculateRound") + StateManager.sharedInstance.changeState(wantedState: .syncingSt) + os_log("Started calculating Round", log: RoundCalculatorService.LOG, type: .info) isCalculating = true let currentSnapshotModel = DataService.sharedInstance.snapshotModel @@ -174,6 +177,8 @@ class RoundCalculatorService { entityManager.updateSnapshotModel(snapshotModel: currentSnapshotModel!) entityManager.getHUD()?.startWithDuration() os_log("Finished calculating Round", log: RoundCalculatorService.LOG, type: .info) + print("entered gameSt in calculateRound") + StateManager.sharedInstance.changeState(wantedState: .gameSt) } func collectBaseSpecificMoves() -> [Int: [String: [PlayerMove]]] {