- separate listboxes for both teams in the crew menu
- fixed host getting team ID 0 - fixed clients not spawning if their ID is 0 (= if playing a non-combat mission before IDs have been assigned) - fixed host's character taking part in the job assignment of both teams
This commit is contained in:
@@ -392,12 +392,12 @@ namespace Barotrauma.Networking
|
||||
|
||||
var clients = GetClientsToRespawn();
|
||||
|
||||
server.AssignJobs(clients);
|
||||
clients.ForEach(c => c.characterInfo.Job = new Job(c.assignedJob));
|
||||
|
||||
List<CharacterInfo> characterInfos = clients.Select(c => c.characterInfo).ToList();
|
||||
if (server.Character != null && server.Character.IsDead) characterInfos.Add(server.CharacterInfo);
|
||||
|
||||
server.AssignJobs(clients, server.Character != null && server.Character.IsDead);
|
||||
clients.ForEach(c => c.characterInfo.Job = new Job(c.assignedJob));
|
||||
|
||||
//the spawnpoints where the characters will spawn
|
||||
var shuttleSpawnPoints = WayPoint.SelectCrewSpawnPoints(characterInfos, respawnShuttle);
|
||||
//the spawnpoints where they would spawn if they were spawned inside the main sub
|
||||
|
||||
Reference in New Issue
Block a user