From 0c9abe0d0870ccef5d088db49ecf5978c562eeaa Mon Sep 17 00:00:00 2001 From: Jakob Haag Date: Mon, 11 May 2020 18:05:43 +0200 Subject: [PATCH] init player1 to playerOneBase and player2 to playerTwoBase on init --- GoldWars/GoldWars/Map/TwoPlayerDefaultTestMap.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GoldWars/GoldWars/Map/TwoPlayerDefaultTestMap.swift b/GoldWars/GoldWars/Map/TwoPlayerDefaultTestMap.swift index 43e62f6..a45af1f 100644 --- a/GoldWars/GoldWars/Map/TwoPlayerDefaultTestMap.swift +++ b/GoldWars/GoldWars/Map/TwoPlayerDefaultTestMap.swift @@ -25,8 +25,7 @@ class TwoPlayerDefaultTestMap: MapProtocol { // Create Bases let basePlayerOne = Base( position: CGPoint(x: self.size.width * 0.1, y: self.size.height / 2), - // ToDo: not final version. Better would be something like MatchmakingHelper.spieler1 but does not work yet - player: GKLocalPlayer.local, + player: MatchmakingHelper.sharedInstance.mpMatch?.players[0], team: .team1 ) @@ -49,6 +48,7 @@ class TwoPlayerDefaultTestMap: MapProtocol { let basePlayerTwo = Base( position: CGPoint(x: self.size.width * 0.9, y: self.size.height / 2), + player: MatchmakingHelper.sharedInstance.mpMatch?.players[1], team: .team2 )