Wifi components can't communicate with the enemy sub in combat missions. Fixes #554

This commit is contained in:
Joonas Rikkonen
2018-08-01 13:52:47 +03:00
parent 82103cf394
commit 5a6a8e2501
5 changed files with 53 additions and 11 deletions
@@ -1309,8 +1309,8 @@ namespace Barotrauma.Networking
{
Character spawnedCharacter = Character.Create(teamClients[i].CharacterInfo, assignedWayPoints[i].WorldPosition, true, false);
spawnedCharacter.AnimController.Frozen = true;
spawnedCharacter.GiveJobItems(assignedWayPoints[i]);
spawnedCharacter.TeamID = (byte)teamID;
spawnedCharacter.GiveJobItems(assignedWayPoints[i]);
teamClients[i].Character = spawnedCharacter;
@@ -1323,8 +1323,8 @@ namespace Barotrauma.Networking
if (characterInfo != null && hostTeam == teamID)
{
myCharacter = Character.Create(characterInfo, assignedWayPoints[assignedWayPoints.Length - 1].WorldPosition, false, false);
myCharacter.GiveJobItems(assignedWayPoints.Last());
myCharacter.TeamID = (byte)teamID;
myCharacter.GiveJobItems(assignedWayPoints.Last());
Character.Controlled = myCharacter;