diff --git a/GoldWars/GoldWars/Entities/EntityManager.swift b/GoldWars/GoldWars/Entities/EntityManager.swift index 7e8601d..364c171 100644 --- a/GoldWars/GoldWars/Entities/EntityManager.swift +++ b/GoldWars/GoldWars/Entities/EntityManager.swift @@ -143,7 +143,7 @@ class EntityManager { if snapBase.ownership != nil { getOwnerBySnapBase = GameCenterManager.sharedInstance.getGKPlayerByUsername(displayName: snapBase.ownership!) } else { - if( entity.component(ofType: TeamComponent.self) != nil ) { + if entity.component(ofType: TeamComponent.self) != nil { runExplosion(base: base) entity.component(ofType: TeamComponent.self)!.fire.removeFromParent() entity.component(ofType: TeamComponent.self)!.unitcountLabel.removeFromParent() @@ -158,7 +158,7 @@ class EntityManager { } base.ownershipPlayer = getOwnerBySnapBase - if (entity.component(ofType: TeamComponent.self) != nil) { + if entity.component(ofType: TeamComponent.self) != nil { entity.component(ofType: TeamComponent.self)!.change(to: getTeamByPlayer(playerName: snapBase.ownership!), to: getOwnerBySnapBase!) } else { entity.addComponent(TeamComponent(