From 5aa10e3fc56e4a355df463da97bbbd26e9dbdf5d Mon Sep 17 00:00:00 2001 From: Jakob Haag Date: Wed, 17 Jun 2020 23:34:48 +0200 Subject: [PATCH] review changes --- GoldWars/GoldWars/Entities/EntityManager.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(