Fixed SetClientCharacter & Revive

This commit is contained in:
Joonas Rikkonen
2017-07-26 17:19:35 +03:00
parent f062ca0e4d
commit 6faf658ae0
3 changed files with 5 additions and 3 deletions
@@ -499,6 +499,7 @@ namespace Barotrauma
foreach (Client c in GameMain.Server.ConnectedClients)
{
if (c.Character != revivedCharacter) continue;
//clients stop controlling the character when it dies, force control back
GameMain.Server.SetClientCharacter(c, revivedCharacter);
break;
@@ -620,7 +621,7 @@ namespace Barotrauma
}
string[] argsLeft = args.Take(separatorIndex).ToArray();
string[] argsRight = args.Skip(separatorIndex).ToArray();
string[] argsRight = args.Skip(separatorIndex + 1).ToArray();
string clientName = String.Join(" ", argsLeft);