- Job assignment fix: characters that are in a different team don't add to the assigned job count.
- If a client doesn't enter the game within 30 seconds of starting the game, their character is automatically killed (otherwise the character would stay in-game in the disabled state indefinitely). - Clients don't update CombatMissions if neither team has any characters (the clients may not have received messages about the characters spawning yet, which would cause them to show the "team dead" message immediately when the round starts).
This commit is contained in:
@@ -166,7 +166,13 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (GameMain.Client == null)
|
||||
{
|
||||
//no characters in either team, i.e. the client hasn't received spawn messages yet
|
||||
if (crews[0].Count == 0 && crews[1].Count == 0) return;
|
||||
}
|
||||
|
||||
bool[] teamDead =
|
||||
{
|
||||
crews[0].All(c => c.IsDead || c.IsUnconscious),
|
||||
|
||||
Reference in New Issue
Block a user