Some progress on flipping subs

Press crouch to flip every sub in the map, texture alignment breaks and physics items vanish, but other than that it's working.
This commit is contained in:
juanjp600
2016-09-29 22:20:15 -03:00
parent e22d8adde5
commit f6b82eb095
12 changed files with 207 additions and 56 deletions

View File

@@ -909,7 +909,7 @@ namespace Barotrauma.Networking
for (int j = 1; j <= teamCount; j++)
{
List<Client> teamClients = connectedClients.FindAll(c => c.TeamID == j);
if (!teamClients.Any()) continue;
if (!teamClients.Any() && j!=1) continue;
AssignJobs(teamClients);
@@ -928,7 +928,7 @@ namespace Barotrauma.Networking
client.characterInfo.Job = new Job(client.assignedJob);
}
if (characterInfo != null)
if (characterInfo != null && j == 1)
{
characterInfo.Job = new Job(GameMain.NetLobbyScreen.JobPreferences[0]);
characterInfos.Add(characterInfo);