diff --git a/GoldWars/GoldWars/RoundCalculatorService.swift b/GoldWars/GoldWars/RoundCalculatorService.swift index 7372c9e..3fb1688 100644 --- a/GoldWars/GoldWars/RoundCalculatorService.swift +++ b/GoldWars/GoldWars/RoundCalculatorService.swift @@ -201,9 +201,9 @@ class RoundCalculatorService { func increaseMoveCounter(ownBase: Bool!) { if ownBase { - self.numberOfOwnUnitMoves = self.numberOfOwnUnitMoves + 1 + self.numberOfOwnUnitMoves += 1 } else { - self.numberOfAttacks = self.numberOfAttacks + 1 + self.numberOfAttacks += 1 } } } diff --git a/GoldWars/GoldWars/RoundTimer.swift b/GoldWars/GoldWars/RoundTimer.swift index 2faa03a..34c5d3d 100644 --- a/GoldWars/GoldWars/RoundTimer.swift +++ b/GoldWars/GoldWars/RoundTimer.swift @@ -31,7 +31,7 @@ class RoundTimer: Timer { @objc func onTimerFires() { - timeLeft = timeLeft - 1 + timeLeft -= 1 EntityManager.gameEMInstance.updateTime(time: (timeLeft > 0 ? String(timeLeft) : roundEnded))