Server doesn't force reconnecting spectate-only clients to control their previous character.

This commit is contained in:
Joonas Rikkonen
2018-08-06 14:14:30 +03:00
parent c463baed44
commit 1a50996774
@@ -384,7 +384,7 @@ namespace Barotrauma.Networking
c.InGame && !c.NeedsMidRoundSync &&
c.Name == character.OwnerClientName &&
c.Connection.RemoteEndPoint.Address.ToString() == character.OwnerClientIP);
if (owner != null)
if (owner != null && (!AllowSpectating || !owner.SpectateOnly))
{
SetClientCharacter(owner, character);
}