Fixed respawned characters getting a different team ID than the rest of the characters (causing them to be displayed as a separate team in the crew menu)

This commit is contained in:
Regalis
2016-11-14 20:09:37 +02:00
parent 3c57b9d945
commit dd5eb69875

View File

@@ -416,6 +416,7 @@ namespace Barotrauma.Networking
bool myCharacter = i >= clients.Count;
var character = Character.Create(characterInfos[i], shuttleSpawnPoints[i].WorldPosition, !myCharacter, false);
character.TeamID = 1;
if (myCharacter)
{